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