Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ACE_Service_Object_Type Class Reference

Define the methods for handling the configuration of <ACE_Service_Objects>. More...

#include <Service_Types.h>

Inheritance diagram for ACE_Service_Object_Type:

Inheritance graph
[legend]
Collaboration diagram for ACE_Service_Object_Type:

Collaboration graph
[legend]
List of all members.

Public Methods

 ACE_Service_Object_Type (void *so, const ACE_TCHAR *name, u_int flags=0, ACE_Service_Object_Exterminator gobbler=0)
 ~ACE_Service_Object_Type (void)
virtual int suspend (void) const
virtual int resume (void) const
virtual int init (int argc, ACE_TCHAR *argv[]) const
virtual int fini (void) const
virtual int info (ACE_TCHAR **str, size_t len) const

Detailed Description

Define the methods for handling the configuration of <ACE_Service_Objects>.

Definition at line 93 of file Service_Types.h.


Constructor & Destructor Documentation

ACE_Service_Object_Type::ACE_Service_Object_Type void *    so,
const ACE_TCHAR   name,
u_int    flags = 0,
ACE_Service_Object_Exterminator    gobbler = 0
 

Definition at line 78 of file Service_Types.cpp.

References ACE_Service_Object_Exterminator, ACE_TCHAR, and ACE_TRACE.

00082   : ACE_Service_Type_Impl (so, s_name, f, gobbler)
00083 {
00084   ACE_TRACE ("ACE_Service_Object_Type::ACE_Service_Object_Type");
00085 }

ACE_INLINE ACE_Service_Object_Type::~ACE_Service_Object_Type void   
 

Definition at line 28 of file Service_Types.i.

References ACE_TRACE.

00029 {
00030   ACE_TRACE ("ACE_Service_Object_Type::~ACE_Service_Object_Type");
00031 }


Member Function Documentation

int ACE_Service_Object_Type::fini void    const [virtual]
 

Reimplemented from ACE_Service_Type_Impl.

Definition at line 384 of file Service_Types.cpp.

References ACE_BIT_ENABLED, ACE_TRACE, ACE_Service_Type::DELETE_OBJ, ACE_Service_Type_Impl::fini, ACE_Shared_Object::fini, and ACE_Service_Type_Impl::object.

00385 {
00386   ACE_TRACE ("ACE_Service_Object_Type::fini");
00387 
00388   void *obj = this->object ();
00389 
00390   ACE_Service_Object *so = (ACE_Service_Object *) obj;
00391 
00392   if (so)
00393     {
00394       so->fini ();
00395 
00396 #if 0
00397       if (ACE_BIT_ENABLED (this->flags_,
00398                            ACE_Service_Type::DELETE_OBJ))
00399         delete so;
00400 #endif /* 1 */
00401     }
00402 
00403   return ACE_Service_Type_Impl::fini ();
00404 }

ACE_INLINE int ACE_Service_Object_Type::info ACE_TCHAR **    str,
size_t    len
const [virtual]
 

Implements ACE_Service_Type_Impl.

Definition at line 48 of file Service_Types.i.

References ACE_TCHAR, ACE_TRACE, and ACE_Service_Type_Impl::object.

00049 {
00050   ACE_TRACE ("ACE_Service_Object_Type::info");
00051   return ((ACE_Service_Object *) this->object ())->info (str, len);
00052 }

int ACE_Service_Object_Type::init int    argc,
ACE_TCHAR   argv[]
const [virtual]
 

Implements ACE_Service_Type_Impl.

Definition at line 88 of file Service_Types.cpp.

References ACE_TCHAR, ACE_TRACE, ACE_Shared_Object::init, and ACE_Service_Type_Impl::object.

00089 {
00090   ACE_TRACE ("ACE_Service_Object_Type::init");
00091 
00092   void *obj = this->object ();
00093   ACE_Service_Object *so = (ACE_Service_Object *) obj;
00094 
00095   if (so == 0)
00096     return -1;
00097   else
00098     return so->init (argc, argv);
00099 }

ACE_INLINE int ACE_Service_Object_Type::resume void    const [virtual]
 

Implements ACE_Service_Type_Impl.

Definition at line 41 of file Service_Types.i.

References ACE_TRACE, and ACE_Service_Type_Impl::object.

00042 {
00043   ACE_TRACE ("ACE_Service_Object_Type::resume");
00044   return ((ACE_Service_Object *) this->object ())->resume ();
00045 }

ACE_INLINE int ACE_Service_Object_Type::suspend void    const [virtual]
 

Implements ACE_Service_Type_Impl.

Definition at line 34 of file Service_Types.i.

References ACE_TRACE, and ACE_Service_Type_Impl::object.

00035 {
00036   ACE_TRACE ("ACE_Service_Object_Type::suspend");
00037   return ((ACE_Service_Object *) this->object ())->suspend ();
00038 }


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 12:55:59 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002