source: trunk/FACT++/src/MessageDim.h@ 13765

Last change on this file since 13765 was 11417, checked in by tbretz, 13 years ago
Removed an obsolete comment block.
File size: 904 bytes
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
11class MessageDimTX : public DimDescribedService, public MessageImp
12{
13private:
14 bool fDebug;
15
16public:
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
29class MessageDimRX : public DimInfoHandler
30{
31private:
32 int fMinLogLevel;
33 bool fConnected;
34
35protected:
36 MessageImp &fMsg;
37
38private:
39 DimStampedInfo fDimMessage;
40
41protected:
42 void infoHandler();
43
44public:
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.