CallbackManager Class Reference

Management class for life signs of connections associated to the callback. More...

#include <callbackmanager.hh>

List of all members.

Public Member Functions

void decrementLifeSignCounter ()
 Decrements the counter/timer of all registered connections.
void resetLifeSignCounter (const AsynchId &id)
 Resets the timeout value of all registered connections.
void addConnection (Callback *callback, const AsynchId &id, Device &device)
 Registers a connection for life sign reception.
void connectionToBeRemoved (const AsynchId &id)
 Removes a connection.
void removeConnectionsOfCb (Callback *cb)
 Remove all connections of a certain callback.

Static Public Member Functions

static CallbackManagergetInstance ()
 Get instance of the callback manager.
static void destroy ()
 Destroy the instance of the callback manager.


Detailed Description

Management class for life signs of connections associated to the callback.


Member Function Documentation

void addConnection ( Callback callback,
const AsynchId &  id,
Device device 
)

Registers a connection for life sign reception.

Connection is added to the internal lists.

Parameters:
callback The Callback used by the connection.
id AsynchId of the connection
device The Device connected to.

void connectionToBeRemoved ( const AsynchId &  id  ) 

Removes a connection.

Is called from the destructor of a connection. Connection is removed at the beginning of the next call of decrementLifeSignCounter.

Parameters:
id AsynchId to be removed.

void decrementLifeSignCounter (  ) 

Decrements the counter/timer of all registered connections.

Is called by the callbacktimer. If the counter has reached 0 a timeout occurs an the error function is called.

static void destroy (  )  [static]

Destroy the instance of the callback manager.

static CallbackManager* getInstance (  )  [static]

Get instance of the callback manager.

void removeConnectionsOfCb ( Callback cb  ) 

Remove all connections of a certain callback.

Is called from the destructor of the specific callback

Parameters:
cb Pointer to the callback

void resetLifeSignCounter ( const AsynchId &  id  ) 

Resets the timeout value of all registered connections.

Is called by the lifeSign method of the callback if it has received a call from the frontend.

Parameters:
id AsynchId of the connection.


The documentation for this class was generated from the following file:
Generated on 7 Feb 2013 for Client Device Access API by  doxygen 1.4.7