00001 // -*- C++ -*- 00002 // Service_Object.inl,v 4.3 2006/04/26 21:19:42 jeliazkov_i Exp 00003 00004 ACE_BEGIN_VERSIONED_NAMESPACE_DECL 00005 00006 ACE_INLINE ACE_Service_Object_Ptr::ACE_Service_Object_Ptr (ACE_Service_Object *so) 00007 : service_object_ (so) 00008 { 00009 } 00010 00011 ACE_INLINE ACE_Service_Object_Ptr::~ACE_Service_Object_Ptr (void) 00012 { 00013 this->service_object_->fini (); 00014 delete this->service_object_; 00015 } 00016 00017 ACE_INLINE ACE_Service_Object * 00018 ACE_Service_Object_Ptr::operator-> () 00019 { 00020 return this->service_object_; 00021 } 00022 00023 ACE_INLINE const ACE_TCHAR * 00024 ACE_Service_Type::name (void) const 00025 { 00026 ACE_TRACE ("ACE_Service_Type::name"); 00027 return this->name_; 00028 } 00029 00030 ACE_INLINE const ACE_Service_Type_Impl * 00031 ACE_Service_Type::type (void) const 00032 { 00033 ACE_TRACE ("ACE_Service_Type::type"); 00034 return this->type_; 00035 } 00036 00037 ACE_INLINE void 00038 ACE_Service_Type::type (const ACE_Service_Type_Impl *o, int enabled) 00039 { 00040 ACE_TRACE ("ACE_Service_Type::type"); 00041 this->type_ = o; 00042 ((ACE_Service_Type *) this)->active_ = enabled; 00043 } 00044 00045 ACE_INLINE int 00046 ACE_Service_Type::active (void) const 00047 { 00048 ACE_TRACE ("ACE_Service_Type::active"); 00049 return this->active_ != 0; 00050 } 00051 00052 ACE_INLINE void 00053 ACE_Service_Type::active (int turnon) 00054 { 00055 ACE_TRACE ("ACE_Service_Type::active"); 00056 this->active_ = turnon; 00057 } 00058 00059 ACE_INLINE int 00060 ACE_Service_Type::fini_called (void) const 00061 { 00062 ACE_TRACE ("ACE_Service_Type::fini_called"); 00063 return this->fini_already_called_; 00064 } 00065 00066 ACE_INLINE const ACE_DLL & ACE_Service_Type::dll () const 00067 { 00068 return this->dll_; 00069 } 00070 00071 ACE_END_VERSIONED_NAMESPACE_DECL 00072