#include <Service_Object.h>

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 (void) | |
| const ACE_TCHAR * | name (void) const |
| void | name (const ACE_TCHAR *) |
| const ACE_Service_Type_Impl * | type (void) const |
| void | type (const ACE_Service_Type_Impl *, bool active=true) |
| bool | is_forward_declaration (void) const |
| Is this just a stub for the real thing? | |
| int | suspend (void) const |
| int | resume (void) const |
| bool | active (void) const |
| void | active (bool turnon) |
| int | fini (void) |
Calls fini on type_. | |
| bool | fini_called (void) const |
| Check if the service has been fini'ed. | |
| void | dump (void) const |
| Dump the state of an object. | |
| const ACE_DLL & | dll (void) 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_TCHAR * | name_ |
| Humanly readible name of svc. | |
| const ACE_Service_Type_Impl * | type_ |
| 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. | |
This class acts as the interface of the "Bridge" pattern.
| anonymous enum |
| ACE_Service_Type::ACE_Service_Type | ( | const ACE_TCHAR * | n, | |
| ACE_Service_Type_Impl * | o, | |||
| const ACE_DLL & | dll, | |||
| bool | active | |||
| ) |
| 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 | ( | void | ) |
| ACE_INLINE void ACE_Service_Type::active | ( | bool | turnon | ) |
| ACE_INLINE bool ACE_Service_Type::active | ( | void | ) | const |
| ACE_INLINE void ACE_Service_Type::dll | ( | const ACE_DLL & | adll | ) |
Sets the DLL.
| ACE_INLINE const ACE_DLL & ACE_Service_Type::dll | ( | void | ) | const |
Get to the DLL's implentation.
| ACE_BEGIN_VERSIONED_NAMESPACE_DECL void ACE_Service_Type::dump | ( | void | ) | const |
Dump the state of an object.
| int ACE_Service_Type::fini | ( | void | ) |
Calls fini on type_.
| ACE_INLINE bool ACE_Service_Type::fini_called | ( | void | ) | const |
Check if the service has been fini'ed.
| bool ACE_Service_Type::is_forward_declaration | ( | void | ) | const |
Is this just a stub for the real thing?
| void ACE_Service_Type::name | ( | const ACE_TCHAR * | n | ) |
| ACE_INLINE const ACE_TCHAR * ACE_Service_Type::name | ( | void | ) | const |
| int ACE_Service_Type::resume | ( | void | ) | const |
| int ACE_Service_Type::suspend | ( | void | ) | const |
| ACE_INLINE void ACE_Service_Type::type | ( | const ACE_Service_Type_Impl * | o, | |
| bool | active = true | |||
| ) |
| ACE_INLINE const ACE_Service_Type_Impl * ACE_Service_Type::type | ( | void | ) | const |
Declare the dynamic allocation hooks.
bool ACE_Service_Type::active_ [private] |
true if svc is currently active, otherwise false.
ACE_DLL ACE_Service_Type::dll_ [mutable, private] |
ACE_DLL representing the shared object file (non-zero if dynamically linked).
bool ACE_Service_Type::fini_already_called_ [private] |
true if fini on type_ has already been called, otherwise false.
const ACE_TCHAR* ACE_Service_Type::name_ [private] |
Humanly readible name of svc.
const ACE_Service_Type_Impl* ACE_Service_Type::type_ [private] |
Pointer to C++ object that implements the svc.
1.5.8