Cat
lbcat-cmake
CatKernel
inc
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
();
29
StatusCode
updateState
();
30
StatusCode
updateConfig
();
31
35
StatusCode
cmdline
( std::vector <std::string> );
36
41
void
setUpdateDelay
(
int
updateDelay
) {
42
m_updateDelay
=
updateDelay
;
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
:
79
Application
*
m_app
;
80
int
m_updateDelay
;
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
Server::m_app
Application * m_app
Definition:
Server.h:79
Server
Definition:
Server.h:22
Server::Server
Server(Application *)
Standard constructor.
Definition:
Server.cpp:26
Server::~Server
virtual ~Server()
Destructor.
Definition:
Server.cpp:44
Server::start
StatusCode start()
Start Service.
Definition:
Server.cpp:98
Server::updateConfig
StatusCode updateConfig()
Update Config Service.
Definition:
Server.cpp:83
Server::cmdline
StatusCode cmdline(std::vector< std::string >)
Definition:
Server.cpp:128
Server::updateDelay
int updateDelay()
Definition:
Server.h:54
StatusCode.h
Application
Definition:
Application.h:58
Server::updateState
StatusCode updateState()
Update State Service.
Definition:
Server.cpp:68
Server::m_updateDelay
int m_updateDelay
Definition:
Server.h:80
StatusCode
Definition:
StatusCode.h:16
ServerDim.h
Server::setUpdateDelay
void setUpdateDelay(int updateDelay)
Definition:
Server.h:41
Generated by
1.8.13