Line | |
---|
1 | #ifndef FACT_MessageDim
|
---|
2 | #define FACT_MessageDim
|
---|
3 |
|
---|
4 | #include "MessageImp.h"
|
---|
5 |
|
---|
6 |
|
---|
7 |
|
---|
8 | #include "DimDescriptionService.h"
|
---|
9 | //#include <dis.hxx> // DimService
|
---|
10 |
|
---|
11 | class MessageDimTX : public DimDescribedService, public MessageImp
|
---|
12 | {
|
---|
13 | private:
|
---|
14 | bool fDebug;
|
---|
15 |
|
---|
16 | public:
|
---|
17 | MessageDimTX(const std::string &name, std::ostream &out=std::cout);
|
---|
18 | ~MessageDimTX();
|
---|
19 |
|
---|
20 | int Write(const Time &t, const std::string &txt, int qos=kInfo);
|
---|
21 |
|
---|
22 | void SetDebug(bool b=true) { fDebug=b; }
|
---|
23 | };
|
---|
24 |
|
---|
25 |
|
---|
26 |
|
---|
27 | #include <dic.hxx> // DimStampedInfo
|
---|
28 |
|
---|
29 | class MessageDimRX : public DimInfoHandler
|
---|
30 | {
|
---|
31 | private:
|
---|
32 | int fMinLogLevel;
|
---|
33 | bool fConnected;
|
---|
34 |
|
---|
35 | protected:
|
---|
36 | MessageImp &fMsg;
|
---|
37 |
|
---|
38 | private:
|
---|
39 | DimStampedInfo fDimMessage;
|
---|
40 |
|
---|
41 | protected:
|
---|
42 | void infoHandler();
|
---|
43 |
|
---|
44 | public:
|
---|
45 | MessageDimRX(const std::string &name, MessageImp &imp);
|
---|
46 |
|
---|
47 | void SetMinLogLevel(int min=0) { fMinLogLevel=min; }
|
---|
48 | bool IsConnected() const { return fConnected; }
|
---|
49 | };
|
---|
50 |
|
---|
51 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.