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

Last change on this file since 10848 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
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
52
53// **************************************************************************
54/** @class DimNetworkInfo
55
56@brief Direct derivative of DimStampedInfo
57
58Since secs and millisecs are not initialized in the base class
59valgrind throws a couple of warnings debugging applications.
60
61This derivative just initialized them with 0. It will be removed as
62soon as the initialization was done in Dim itself.
63
64**/
65// **************************************************************************
Note: See TracBrowser for help on using the repository browser.