Cat
Server.h
Go to the documentation of this file.
1 // $Id: Server.h,v 1.8 2007/02/05 14:59:03 fmachefe Exp $
2 #ifndef INC_SERVER_H
3 #define INC_SERVER_H 1
4 
5 // Include files
6 #ifdef _NETWORK_
7 #include <dis.hxx>
8 #endif
9 
10 #include "ServerDim.h"
11 
12 #include "StatusCode.h"
13 
14 class Application;
15 
22 class Server {
23 public:
24  Server( Application* );
25 
26  virtual ~Server( );
27 
28  StatusCode start ();
31 
35  StatusCode cmdline( std::vector <std::string> );
36 
43 #ifdef _NETWORK_
44  if ( 0 != m_servTimer ){
45  m_servTimer->setDelay ( m_updateDelay );
46  }
47 #endif
48  }
49 
54  int updateDelay () {
55  return m_updateDelay;
56  }
57 
58 #ifdef _NETWORK_
59 
63  CmndServ* servCmd () {
64  return m_servCmd;
65  }
66 
71  CtrlServ* servCtrl () {
72  return m_servCtrl;
73  }
74 #endif
75 
76 protected:
77 
78 private:
81 #ifdef _NETWORK_
82  CmndServ *m_servCmd;
83  CtrlServ *m_servCtrl;
84  Timer *m_servTimer;
85  DimService *m_servState;
86  DimService *m_servConfig;
87 #endif
88 };
89 #endif // INC_SERVER_H
Application * m_app
Definition: Server.h:79
Definition: Server.h:22
Server(Application *)
Standard constructor.
Definition: Server.cpp:26
virtual ~Server()
Destructor.
Definition: Server.cpp:44
StatusCode start()
Start Service.
Definition: Server.cpp:98
StatusCode updateConfig()
Update Config Service.
Definition: Server.cpp:83
StatusCode cmdline(std::vector< std::string >)
Definition: Server.cpp:128
int updateDelay()
Definition: Server.h:54
StatusCode updateState()
Update State Service.
Definition: Server.cpp:68
int m_updateDelay
Definition: Server.h:80
void setUpdateDelay(int updateDelay)
Definition: Server.h:41