Last change
on this file since 11302 was 10522, checked in by tbretz, 14 years ago |
Removed DimNetworkInfo; instead implemented proper initialization of the time-stamp in all infoHandlers
|
File size:
1.3 KB
|
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
|
---|
52 |
|
---|
53 | // **************************************************************************
|
---|
54 | /** @class DimNetworkInfo
|
---|
55 |
|
---|
56 | @brief Direct derivative of DimStampedInfo
|
---|
57 |
|
---|
58 | Since secs and millisecs are not initialized in the base class
|
---|
59 | valgrind throws a couple of warnings debugging applications.
|
---|
60 |
|
---|
61 | This derivative just initialized them with 0. It will be removed as
|
---|
62 | soon as the initialization was done in Dim itself.
|
---|
63 |
|
---|
64 | **/
|
---|
65 | // **************************************************************************
|
---|
Note:
See
TracBrowser
for help on using the repository browser.