summaryrefslogtreecommitdiff
path: root/ace/Service_Object.i
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1997-09-12 03:37:51 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1997-09-12 03:37:51 +0000
commitf324b831958855fb9f9f8030d9ae9fadcb410b82 (patch)
treeb7abff4feff6894c93ec2ec491fcc93a0df9199c /ace/Service_Object.i
parentb28d9da6e806044a8f8079cc902d3b295b4d484f (diff)
downloadATCD-f324b831958855fb9f9f8030d9ae9fadcb410b82.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/Service_Object.i')
-rw-r--r--ace/Service_Object.i55
1 files changed, 45 insertions, 10 deletions
diff --git a/ace/Service_Object.i b/ace/Service_Object.i
index a51b36a1740..0f55fa6226d 100644
--- a/ace/Service_Object.i
+++ b/ace/Service_Object.i
@@ -19,13 +19,6 @@ ACE_Service_Object_Ptr::operator-> ()
return this->service_object_;
}
-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
{
@@ -33,12 +26,54 @@ ACE_Service_Type::name (void) const
return this->name_;
}
-ACE_INLINE void
+ACE_INLINE const ACE_Service_Type_Impl *
+ACE_Service_Type::type (void) const
+{
+ ACE_TRACE ("ACE_Service_Type::type");
+ return this->type_;
+}
+
+ACE_INLINE ACE_SHLIB_HANDLE
+ACE_Service_Type::handle (void) const
+{
+ ACE_TRACE ("ACE_Service_Type::handle");
+ return this->handle_;
+}
+
+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);
+ this->name_ = ACE_OS::strcpy (new char [::strlen (n) + 1], n);
+}
+
+ACE_INLINE void
+ACE_Service_Type::type (const ACE_Service_Type_Impl *o, int enabled)
+{
+ ACE_TRACE ("ACE_Service_Type::type");
+ this->type_ = o;
+ ((ACE_Service_Type *) this)->active_ = enabled;
+}
+
+ACE_INLINE void
+ACE_Service_Type::handle (const ACE_SHLIB_HANDLE h)
+{
+ ACE_TRACE ("ACE_Service_Type::handle");
+ this->handle_ = h;
+}
+
+ACE_INLINE int
+ACE_Service_Type::active (void) const
+{
+ ACE_TRACE ("ACE_Service_Type::active");
+ return this->active_ != 0;
+}
+
+ACE_INLINE void
+ACE_Service_Type::active (int turnon)
+{
+ ACE_TRACE ("ACE_Service_Type::active");
+ this->active_ = turnon;
}