summaryrefslogtreecommitdiff
path: root/ace/Service_Object.i
blob: e85fd0323bb703a9af0ab9f8ac5c93339d8eaded (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
/* -*- C++ -*- */
// $Id$

// Service_Object.i

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

ACE_INLINE const char *
ACE_Service_Type::name (void) const
{
  ACE_TRACE ("ACE_Service_Type::name");
  return this->name_;
}

ACE_INLINE void
ACE_Service_Type::name (const char *n)
{
  ACE_TRACE ("ACE_Service_Type::name");

  delete [] (char *) this->name_;
  ACE_NEW (this->name_, char[::strlen (n) + 1]);
  ACE_OS::strcpy ((char *) this->name_, n);
}