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

Last change on this file since 10422 was 10422, checked in by tbretz, 10 years ago
Fixed the millisecond part of the time, the Time class expects microseconds; some changes to the order of the data members to ensure a proper destruction.
File size: 858 bytes
Line 
1#ifndef FACT_MessageDim
2#define FACT_MessageDim
3
4#include "MessageImp.h"
5
6
7
8#include <dis.hxx> // DimService
9
10class MessageDimTX : public DimService, public MessageImp
11{
12private:
13 bool fDebug;
14
15public:
16 MessageDimTX(const std::string &name, std::ostream &out=std::cout);
17 ~MessageDimTX();
18
19 int Write(const Time &t, const std::string &txt, int qos=kInfo);
20
21 void SetDebug(bool b=true) { fDebug=b; }
22};
23
24
25
26#include <dic.hxx> // DimStampedInfo
27
28class MessageDimRX : public DimInfoHandler
29{
30private:
31 int fMinLogLevel;
32 bool fConnected;
33
34protected:
35 MessageImp &fMsg;
36
37private:
38 DimStampedInfo fDimMessage;
39
40protected:
41 void infoHandler();
42
43public:
44 MessageDimRX(const std::string &name, MessageImp &imp);
45
46 void SetMinLogLevel(int min=0) { fMinLogLevel=min; }
47 bool IsConnected() const { return fConnected; }
48};
49
50#endif
Note: See TracBrowser for help on using the repository browser.