summaryrefslogtreecommitdiff
path: root/ACE/ace/Service_Types.inl
blob: f32aa55c9fddaccb3f18b6c0c3a3548042fa0768 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// -*- C++ -*-
#include "ace/ACE.h"

ACE_BEGIN_VERSIONED_NAMESPACE_DECL

ACE_INLINE void *
ACE_Service_Type_Impl::object () const
{
  ACE_TRACE ("ACE_Service_Type_Impl::object");
  return this->obj_;
}

ACE_INLINE const ACE_TCHAR *
ACE_Service_Type_Impl::name () const
{
  ACE_TRACE ("ACE_Service_Type_Impl::name");
  return this->name_;
}

ACE_INLINE void
ACE_Service_Type_Impl::name (const ACE_TCHAR *n)
{
  ACE_TRACE ("ACE_Service_Type_Impl::name");

  ACE::strdelete (const_cast<ACE_TCHAR*> (this->name_));
  this->name_ = ACE::strnew (n);
}

ACE_INLINE int
ACE_Service_Type_Impl::service_type () const
{
  return service_type_;
}

ACE_INLINE void
ACE_Service_Type_Impl::service_type (int stype)
{
  service_type_ = stype;
}
ACE_END_VERSIONED_NAMESPACE_DECL