#include <InterCom.hpp>
Public Member Functions | |
~InterCom () | |
void | subscribe () |
void | run (bool interactive=true) |
void | setUp () |
int | sendCommand (char *target, boost::shared_ptr< FeePacket > pFeePacket) |
int | executeCommand (char *data, int size) |
boost::shared_ptr< FeePacket > | createFeePacket (char *payload, int size, bool checksumFlag=false, FlagBits feeServerFlag=NO_FLAGS, bool huffmanFlag=false) |
boost::shared_ptr< FeePacket > | createBroadCastFeePacket (char *payload, int size, bool checksumFlag=false, FlagBits feeServerFlag=NO_FLAGS, std::vector< char * > *feeserverCollection=NULL, bool huffmanFlag=false) |
std::vector< FeeItemInfo * > * | getFeeItemInfoCollection () |
std::vector< FeeAckInfo * > * | getFeeAckInfoCollection () |
std::vector< FeeMsgInfo * > * | getFeeMsgInfoCollection () |
void | setLogEntry (unsigned int type, char *source, char *description) |
bool | validateServerName (const char *serverName) |
FeeServerMap * | getFeeServerMap () |
void | setFeeServerMap (FeeServerMap) |
Static Public Member Functions | |
void | setConfigDir (const std::string &configDir) |
InterCom * | createInterCom () |
|
Destructor for the InterCom |
|
Function to create a FeePacket, wrapping command, for sending it to a FeeServer. If this command is destinated for the FeeServer itself (rather than for the CE), the feeServerFlag has to be declared here.
|
|
Method to create a single InterCom - object (Singleton). This method takes care, that only one InterCom - object is created at one time. If this object already exists, it returns the pointer to this object (see also "Design Patterns, GoF, - Singleton). This function must be static, because it is called without having an InterCom - object.
|
|
Receives commands for the InterCom-Layer itself, interprets these commands and executes them afterwards. The return value provides the success - message.
|
|
Getter for the FeeAckInfoCollection.
|
|
Getter for the FeeItemInfoCollection.
|
|
Getter for the FeeMsgInfoCollection.
|
|
Returns the adress of the current FeeMap object. |
|
Function to run the interCom layer after SetUp. |
|
Function to send a command, wrapped in a FeePacket, to a FeeServer.
|
|
This function copy a initialized FeeServerMap to the local one.
|
|
Function to set a log entry. This function provides the logger with the needed infos for a log message and creates an entry. Used by the other parts of the InterCom - Layer to set log-entries.
|
|
SetUp - includes function for the Mock Up version. Release setUp will be implemented, when database is defined. |
|
Function to subscribe to services. |
|
Checks a given server name, if InterCom - Layer has been susbcribed to it (Compares the name with list of servers).
|