Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals

dcs::fee::FeeClientCore Class Reference

#include <FeeClientCore.hpp>

Inheritance diagram for dcs::fee::FeeClientCore:

DimClient

Detailed Description

This class represents the core of the FeeClient in the Fee-Fed library.

It takes care of subscribing to services and handling the communication with the FeeServers.

Author:
Sebastian Bablok, Christian Kofler
Date:
2003 (changed for LIB 2005-10-05)


Public Member Functions

 FeeClientCore (FeeClientLibInterface *interface)
virtual ~FeeClientCore ()
void infoHandler ()
int subscribeTo (std::vector< char * > *servers, std::vector< FeeServiceStruct * > *pServices)
unsigned int getState ()

Private Attributes

std::vector< FeeItemInfo * > mFeeItemInfoCollection
std::vector< FeeAckInfo * > mFeeAckInfoCollection
std::vector< FeeMsgInfo * > mFeeMsgInfoCollection
FeeClientLoggermpLogger
FeeClientLibInterfacempInterface
unsigned int mState


Constructor & Destructor Documentation

FeeClientCore::FeeClientCore FeeClientLibInterface interface  ) 
 

Constructor of the FeeClient core.

This client holds the connection to the FeeServer.

Parameters:
interface pointer to the lib interface object

FeeClientCore::~FeeClientCore  )  [virtual]
 

Destructor of the FeeClient core.


Member Function Documentation

unsigned int dcs::fee::FeeClientCore::getState  )  [inline]
 

Getter for the state of the FeeClientCore.

  • INIT -> init state, means registering of FeeServers and their services possible.
  • RUNNING -> serving state, is connected to the FeeServers, no registering of FeeServers or services possible anymore.

Returns:
current state of the FeeClientCore

void FeeClientCore::infoHandler  ) 
 

The infoHandler for incomming data of the FeeServer.

int FeeClientCore::subscribeTo std::vector< char * > *  servers,
std::vector< FeeServiceStruct * > *  pServices
 

Function to subscribe to certain services.

Gets a vector with char* containing: "ServerName", concatenates "_Acknowledge" and subscribes to it. Same with "_Mesage". additionally gets a vector with char* containing: "ServerName_ServiceName".

Parameters:
servers pointer to vector with all registered servernames.
pServices pointer to container of all registered services (including their handler routine for the FeeClientLibInterface)
Returns:
amount of subscribed services.


Field Documentation

std::vector<FeeAckInfo*> dcs::fee::FeeClientCore::mFeeAckInfoCollection [private]
 

Container for pointers of the FeeAckInfo - objects, which represent the result channels for commands.

After subscribing it should contain all these services.

std::vector<FeeItemInfo*> dcs::fee::FeeClientCore::mFeeItemInfoCollection [private]
 

Container for pointers of the FeeItemInfo - objects, which represent the monitoring services.

After subscribing it should contain all services for monitoring purpose (not the Ack channel).

std::vector<FeeMsgInfo*> dcs::fee::FeeClientCore::mFeeMsgInfoCollection [private]
 

Container for pointers of the FeeMsgInfo - objects.

These channels are used to deliver messages from the FeeServers. After subscribing it should contain all msg channels (to each FeeServer one).

FeeClientLibInterface* dcs::fee::FeeClientCore::mpInterface [private]
 

Pointer to the interface to call the handler functions.

FeeClientLogger* dcs::fee::FeeClientCore::mpLogger [private]
 

The FeeClientLogger object, which takes care of all log messages (remote [from the FeeServers], and local).

unsigned int dcs::fee::FeeClientCore::mState [private]
 

State of the FeeClientCore (INIT, RUNNING).


The documentation for this class was generated from the following files:
Generated on Thu Mar 29 19:21:15 2007 for Fee Client Library by doxygen 1.3.5