GlobalObjects
|
Monitoring class for client logins and logouts. More...
Public Member Functions | |
ClientWatch () | |
~ClientWatch () | |
void | deleteAllWatches (Communicator *pCommunicator) |
std::size_t | getCommunicatorClientNotifyModesMapCount () const |
bool | hasWatches () const |
void | setWatch (const CommunicatorCallBackIndex &rCommunicatorCallBackIndex, TdWatchNotifyMode tdWatchNotifyMode) |
int | unsetWatch (const CommunicatorCallBackIndex &rCommunicatorCallBackIndex, TdWatchNotifyMode tdWatchNotifyMode, bool bSimulate=false) |
Protected Member Functions | |
void | clearCommunicatorClientNotifyModesMap () |
Private Attributes | |
std::map< CommunicatorCallBackIndex, CommunicatorClientNotifyModes *, std::less< CommunicatorCallBackIndex > > | m_CommunicatorClientNotifyModesMap |
Monitoring class for client logins and logouts.
glo::WatchNotifyManager::ClientWatch::ClientWatch | ( | ) |
Standard constructor.
glo::WatchNotifyManager::ClientWatch::~ClientWatch | ( | ) |
Destructor.
|
protected |
Removes all client login and logout monitoring.
void glo::WatchNotifyManager::ClientWatch::deleteAllWatches | ( | Communicator * | pCommunicator | ) |
Removes all monitoring of the transferred client communicator.
[in] | pCommunicator | The client communicator. |
std::size_t glo::WatchNotifyManager::ClientWatch::getCommunicatorClientNotifyModesMapCount | ( | ) | const |
Returns the number of client login and logout monitors.
bool glo::WatchNotifyManager::ClientWatch::hasWatches | ( | ) | const |
Checks if client login and logout monitors are set.
void glo::WatchNotifyManager::ClientWatch::setWatch | ( | const CommunicatorCallBackIndex & | rCommunicatorCallBackIndex, |
TdWatchNotifyMode | tdWatchNotifyMode ) |
Registers a monitoring for the client login and logout.
[in] | rCommunicatorCallBackIndex | The client communicator that wants to monitor. |
[in] | tdWatchNotifyMode | The activated monitoring mode. |
int glo::WatchNotifyManager::ClientWatch::unsetWatch | ( | const CommunicatorCallBackIndex & | rCommunicatorCallBackIndex, |
TdWatchNotifyMode | tdWatchNotifyMode, | ||
bool | bSimulate = false ) |
Deregisters a monitoring for the client login and logout.
[in] | rCommunicatorCallBackIndex | The client communicator that has monitored. |
[in] | tdWatchNotifyMode | The suspended monitoring mode. |
[in] | bSimulate | If true, only simulation is performed, no value is set, but a result or error is returned. |
|
private |
The individual CommunicatorClassNotifyModes of the monitored client with the CommunicatorCallBackIndex as index in a map.