1 #ifndef FACT_DimNetwork 2 #define FACT_DimNetwork 64 void DeleteClientList();
67 typedef std::map<const std::string, StateClient*>
ClientList;
71 void AddServer(
const std::string &s);
72 void RemoveServer(std::string s);
73 void RemoveAllServers();
85 int GetCurrentState(
const string &server)
const;
A base class taking care of padding, exit handler and error handlers.
The base implementation of a distributed messaging system.
Adds some functionality to boost::posix_time::ptime for our needs.
const char * GetName() const
DimStampedInfo fInfoState
-2 not initialized, -1 not connected, 0>= state of client
std::map< const std::string, StateClient * > ClientList
Implements automatic subscription to MESSAGE and STATE services.
StateClient(const std::string &name, MessageImp &imp)
Based on MessageImp, subscribes to a MESSAGE service in the Dim network.
DimNetwork(std::ostream &out=std::cout)
void infoHandler()
The dim service subscription.
int fState
Combine into one MTime (together with value)
A simple Dim client diriving from MessageDimRX subscribing to the STATE service.