ACE 8.0.2
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | Private Attributes | List of all members
ACE_Service_Type Class Reference

Keeps track of information related to the various ACE_Service_Type_Impl subclasses. More...

#include <Service_Object.h>

Collaboration diagram for ACE_Service_Type:
Collaboration graph
[legend]

Public Types

enum  { DELETE_OBJ = 1 , DELETE_THIS = 2 }
 
enum  { SERVICE_OBJECT = ACE_SVC_OBJ_T , MODULE = ACE_MODULE_T , STREAM = ACE_STREAM_T , INVALID_TYPE = -1 }
 

Public Member Functions

 ACE_Service_Type (const ACE_TCHAR *n, ACE_Service_Type_Impl *o, const ACE_DLL &dll, bool active)
 
 ACE_Service_Type (const ACE_TCHAR *n, ACE_Service_Type_Impl *o, ACE_SHLIB_HANDLE handle, bool active)
 
 ~ACE_Service_Type ()
 
const ACE_TCHARname () const
 
void name (const ACE_TCHAR *)
 
const ACE_Service_Type_Impltype () const
 
void type (const ACE_Service_Type_Impl *, bool active=true)
 
bool is_forward_declaration () const
 Is this just a stub for the real thing?
 
int suspend () const
 
int resume () const
 
bool active () const
 
void active (bool turnon)
 
int fini ()
 Calls fini on type_.
 
bool fini_called () const
 Check if the service has been fini'ed.
 
void dump () const
 Dump the state of an object.
 
const ACE_DLLdll () const
 Get to the DLL's implentation.
 
void dll (const ACE_DLL &)
 Sets the DLL.
 

Public Attributes

 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks.
 

Private Attributes

const ACE_TCHARname_
 Humanly readible name of svc.
 
const ACE_Service_Type_Impltype_
 Pointer to C++ object that implements the svc.
 
ACE_DLL dll_
 
bool active_
 true if svc is currently active, otherwise false.
 
bool fini_already_called_
 true if fini on type_ has already been called, otherwise false.
 

Detailed Description

Keeps track of information related to the various ACE_Service_Type_Impl subclasses.

This class acts as the interface of the "Bridge" pattern.

Member Enumeration Documentation

◆ anonymous enum

Enumerator
DELETE_OBJ 

Delete the payload object.

DELETE_THIS 

Delete the enclosing object.

◆ anonymous enum

Enumerator
SERVICE_OBJECT 
MODULE 
STREAM 
INVALID_TYPE 

Constructor & Destructor Documentation

◆ ACE_Service_Type() [1/2]

ACE_Service_Type::ACE_Service_Type ( const ACE_TCHAR * n,
ACE_Service_Type_Impl * o,
const ACE_DLL & dll,
bool active )

◆ ACE_Service_Type() [2/2]

ACE_Service_Type::ACE_Service_Type ( const ACE_TCHAR * n,
ACE_Service_Type_Impl * o,
ACE_SHLIB_HANDLE handle,
bool active )

◆ ~ACE_Service_Type()

ACE_Service_Type::~ACE_Service_Type ( )

Member Function Documentation

◆ active() [1/2]

bool ACE_Service_Type::active ( ) const
inline

◆ active() [2/2]

void ACE_Service_Type::active ( bool turnon)
inline

◆ dll() [1/2]

const ACE_DLL & ACE_Service_Type::dll ( ) const
inline

Get to the DLL's implentation.

◆ dll() [2/2]

void ACE_Service_Type::dll ( const ACE_DLL & adll)
inline

Sets the DLL.

◆ dump()

void ACE_Service_Type::dump ( ) const

Dump the state of an object.

◆ fini()

int ACE_Service_Type::fini ( )

Calls fini on type_.

◆ fini_called()

bool ACE_Service_Type::fini_called ( ) const
inline

Check if the service has been fini'ed.

◆ is_forward_declaration()

bool ACE_Service_Type::is_forward_declaration ( ) const

Is this just a stub for the real thing?

◆ name() [1/2]

const ACE_TCHAR * ACE_Service_Type::name ( ) const
inline

◆ name() [2/2]

void ACE_Service_Type::name ( const ACE_TCHAR * n)

◆ resume()

int ACE_Service_Type::resume ( ) const

◆ suspend()

int ACE_Service_Type::suspend ( ) const

◆ type() [1/2]

const ACE_Service_Type_Impl * ACE_Service_Type::type ( ) const
inline

◆ type() [2/2]

void ACE_Service_Type::type ( const ACE_Service_Type_Impl * o,
bool active = true )
inline

Member Data Documentation

◆ ACE_ALLOC_HOOK_DECLARE

ACE_Service_Type::ACE_ALLOC_HOOK_DECLARE

Declare the dynamic allocation hooks.

◆ active_

bool ACE_Service_Type::active_
private

true if svc is currently active, otherwise false.

◆ dll_

ACE_DLL ACE_Service_Type::dll_
mutableprivate

ACE_DLL representing the shared object file (non-zero if dynamically linked).

◆ fini_already_called_

bool ACE_Service_Type::fini_already_called_
private

true if fini on type_ has already been called, otherwise false.

◆ name_

const ACE_TCHAR* ACE_Service_Type::name_
private

Humanly readible name of svc.

◆ type_

const ACE_Service_Type_Impl* ACE_Service_Type::type_
private

Pointer to C++ object that implements the svc.


The documentation for this class was generated from the following files: