LogService
libdadi: utility tools for distributed applications
Public Member Functions | List of all members
StateManager Class Reference

Public Member Functions

 StateManager (ReadConfig *readConfig, bool *success)
 
bool check (log_msg_t *msg)
 
void askForSystemState (OutBuffer *outBuffer)
 

Constructor & Destructor Documentation

StateManager::StateManager ( ReadConfig readConfig,
bool *  success 
)

Initialize the StateManager The tags IN and OUT are always important.

Parameters
readConfigReadConfig reference
successused to indicated if the initialisation was successfull.

Member Function Documentation

void StateManager::askForSystemState ( OutBuffer outBuffer)

Call by the LogCentraTool_impl to send the current SystemState to a new tool.

Parameters
toolNamename of the tool to send the SystemState
bool StateManager::check ( log_msg_t msg)

To know if a message must be broadcast to all Tools By the same time register it if necessary (Important Tag)

Parameters
msgMessage to check and/or register
Returns
true if the message must be boradcast

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