00001 // -*- C++ -*- 00002 // 00003 // $Id: Service_Types.inl 89925 2010-04-19 12:49:11Z cbeaulac $ 00004 00005 #include "ace/ACE.h" 00006 00007 ACE_BEGIN_VERSIONED_NAMESPACE_DECL 00008 00009 ACE_INLINE void * 00010 ACE_Service_Type_Impl::object (void) const 00011 { 00012 ACE_TRACE ("ACE_Service_Type_Impl::object"); 00013 return this->obj_; 00014 } 00015 00016 ACE_INLINE const ACE_TCHAR * 00017 ACE_Service_Type_Impl::name (void) const 00018 { 00019 ACE_TRACE ("ACE_Service_Type_Impl::name"); 00020 return this->name_; 00021 } 00022 00023 ACE_INLINE void 00024 ACE_Service_Type_Impl::name (const ACE_TCHAR *n) 00025 { 00026 ACE_TRACE ("ACE_Service_Type_Impl::name"); 00027 00028 ACE::strdelete (const_cast<ACE_TCHAR*> (this->name_)); 00029 this->name_ = ACE::strnew (n); 00030 } 00031 00032 ACE_INLINE int 00033 ACE_Service_Type_Impl::service_type (void) const 00034 { 00035 return service_type_; 00036 } 00037 00038 ACE_INLINE void 00039 ACE_Service_Type_Impl::service_type (int stype) 00040 { 00041 service_type_ = stype; 00042 } 00043 ACE_END_VERSIONED_NAMESPACE_DECL