1 #ifndef FACT_DimServiceInfoList 2 #define FACT_DimServiceInfoList 25 typedef std::map<const std::string, ServiceType>
TypeList;
28 typedef std::map<const std::string, std::pair<std::string, std::vector<Description>>>
DescriptionList;
63 std::vector<std::string>
GetServiceList(
const std::string &server,
bool iscmd=
false)
const;
65 std::vector<Description>
GetDescription(
const std::string &server,
const std::string &service)
const;
66 std::vector<State>
GetStates(
const std::string &server)
const;
69 int IsCommand(
const std::string &server,
const std::string &service)
const;
71 int PrintDescription(std::ostream &out,
bool iscmd,
const std::string &
serv=
"",
const std::string &service=
"")
const;
74 bool SendDimCommand(std::ostream &lout,
const std::string &server,
const std::string &
str)
const;
75 void SendDimCommand(
const std::string &server, std::string str, std::ostream &lout)
const;
76 void SendDimCommand(
const std::string &server,
const std::string &str)
const;
90 virtual void AddService(
const std::string &,
const std::string &,
const std::string &,
bool) { }
93 virtual void AddDescription(
const std::string &,
const std::string &,
const std::vector<Description> &) { }
94 virtual void AddStates(
const std::string &,
const std::vector<State> &) { }
102 std::vector<std::string>
GetServiceList(
const std::string &server,
bool iscmd=
false)
const 108 std::vector<Description>
GetDescription(
const std::string &server,
const std::string &service)
const 110 std::vector<State>
GetStates(
const std::string &server)
const 113 {
return fInfo.
GetState(server, state); }
115 int IsCommand(
const std::string &server,
const std::string &service)
const 116 {
return fInfo.
IsCommand(server, service); }
118 int PrintDescription(std::ostream &out,
bool iscmd,
const std::string &
serv=
"",
const std::string &service=
"")
const 123 bool SendDimCommand(std::ostream &lout,
const std::string &server,
const std::string &
str)
const void RemoveServer(std::string)
virtual void AddDescription(const std::string &, const std::string &, const std::vector< Description > &)
std::map< const std::string, ServiceType > TypeList
ServiceList fServiceList
A map storing the service description to retrieve all informations.
void AddServer(const std::string &s)
int PrintDescription(std::ostream &out, bool iscmd, const std::string &serv="", const std::string &service="") const
std::vector< std::string > GetCommandList(const std::string &server) const
std::vector< State > GetStates(const std::string &server) const
std::vector< State > third
Description of the arguments.
DimInfo * CreateFMT(const std::string &str) const
std::map< const std::string, std::pair< std::string, std::vector< Description > > > DescriptionList
DescriptionList second
Format and description of the service.
std::vector< Description > GetDescription(const std::string &server, const std::string &service) const
int PrintStates(std::ostream &out, const std::string &serv="") const
Maintains a list of all services available in the Dim network.
bool SendDimCommand(std::ostream &lout, const std::string &server, const std::string &str) const
State GetState(const std::string &server, int state) const
std::pair< std::string, bool > ServiceType
virtual void RemoveAllServices(const std::string &)
std::vector< std::string > GetCommandList() const
int IsCommand(const std::string &server, const std::string &service) const
DimServiceInfoList(DimServiceInfoListImp *list)
DimServiceInfoListImp * fList
std::map< const std::string, ServerInfo > ServiceList
virtual void RemoveServer(std::string s)
std::vector< std::string > GetServiceList(bool iscmd=false) const
std::vector< std::string > GetServiceList(bool iscmd=false) const
virtual void RemoveService(std::string, std::string, bool)
bool SendDimCommand(std::ostream &lout, const std::string &server, const std::string &str) const
DimInfo * CreateSL(const std::string &str) const
virtual void AddStates(const std::string &, const std::vector< State > &)
virtual void AddService(const std::string &, const std::string &, const std::string &, bool)
DimInfo * CreateDimInfo(const std::string &str, const std::string &svc) const
A mal containing all the available informations.
int PrintDescription(std::ostream &out, bool iscmd, const std::string &serv="", const std::string &service="") const
std::vector< std::string > GetServiceList(const std::string &server, bool iscmd=false) const
std::vector< State > GetStates(const std::string &server) const
State GetState(const std::string &server, int state) const
ServiceInfoList fServiceInfoList
int PrintStates(std::ostream &out, const std::string &serv="") const
std::map< const std::string, std::vector< DimInfo * > > ServiceInfoList
virtual void RemoveAllServers()
DimInfo * CreateDS(const std::string &str) const
Maintains a list of all servers based on DIS_DNS/SERVER_LIST.
int IsCommand(const std::string &server, const std::string &service) const
void SendDimCommand(const std::string &server, const std::string &str) const
std::vector< Description > GetDescription(const std::string &server, const std::string &service) const
virtual void AddServer(const std::string &s)
void SendDimCommand(const std::string &server, std::string str, std::ostream &lout) const