30 m_app->
info(
"Server built.",
"Server::Server");
31 m_servCmd =
new CmndServ (
m_app );
32 m_servCtrl =
new CtrlServ (
m_app );
37 m_app->
warning(
"Compilation without NETWORK capabilities",
"Server::Server");
48 if ( 0 != m_servState ) {
51 if ( 0 != m_servTimer ) {
54 if ( 0 != m_servConfig ) {
70 m_servState->updateService();
71 m_app->
debug(
"Updating state service.",
"Server::updateState");
73 m_app->
warning(
"Updating server services not available (NETWORK mode off).",
74 "Server::updateState");
85 m_servConfig->updateService();
86 m_app->
debug(
"Updating proc database service.",
"Server::updateConfig");
88 m_app->
warning(
"Updating server services not available (NETWORK mode off).",
89 "Server::updateConfig");
104 str.append (
"/state");
105 m_servState =
new DimService ( str.c_str(),
"I:4;C",
108 m_servTimer =
new Timer (
updateDelay() , m_servState );
110 str.append (
"/config");
111 m_servConfig =
new DimService ( str.c_str(),
"C",
117 m_app->
warning(
"compilation without NETWORK capabilities. Cannot start server.",
132 sprintf(line,
"Timer [timer] : %i",
updateDelay() );
137 transform(cmd[0].begin(),cmd[0].end(),cmd[0].begin(),tolower);
139 if (cmd[0].compare(
"timer")==0){
140 if ( cmd.size() == 2 ) {
void info(std::string mymsg)
Server(Application *)
Standard constructor.
virtual ~Server()
Destructor.
StatusCode start()
Start Service.
StatusCode updateConfig()
Update Config Service.
StatusCode cmdline(std::vector< std::string >)
void debug(std::string mymsg)
StatusCode updateState()
Update State Service.
void warning(std::string mymsg)
void setUpdateDelay(int updateDelay)