Public Member Functions
|LogMsg *||reserveMsg ()|
|void||releaseMsg (LogMsg *pLogMsg)|
Static Public Member Functions
|static LogMsgMgr *||Create ()|
|static LogMsgMgr *||Default ()|
|static bool||IsCreated ()|
The class implements a log message manager with a message pool for logger messages. Using a separate message manager has several advantages:
The logger can of course be used without this message manager. In this case the message manager of the kernel services is used. Be aware that
The log message manager provides services to reserve and to release messages. It is implemented as a monitor and serializes the accesses to its internal resources.
|static LogMsgMgr* ApparatusFramework::LogMsgMgr::Create||(||)||
singleton methods Creates an instance of the singleton if none exists yet. The object is created in static memory.
|static LogMsgMgr* ApparatusFramework::LogMsgMgr::Default||(||)||
References an instance that has been previously created.
|static bool ApparatusFramework::LogMsgMgr::IsCreated||(||)||
States whether an instance of this singleton has been created.
|void ApparatusFramework::LogMsgMgr::releaseMsg||(||LogMsg *||pLogMsg||)|
Releases a previously reserved message and returns it to the pool of free message. If the message was no previously reserved by this manager, an error is generated.
|pLogMsg||Address of the message to release.|
messages handling Reserves a logger message and returns a pointer to it. If no message is free, null is returned.
© 2004-2010 bbv Software Services AG / Apparatus Services