OpenRTM-aist  1.2.1
LogstreamBase.h
Go to the documentation of this file.
1 // -*- C++ -*-
18 #ifndef RTC_LOGSTREAMBASE_H
19 #define RTC_LOGSTREAMBASE_H
20 
21 #include <coil/Properties.h>
22 #include <coil/Factory.h>
23 #include <coil/Logger.h>
24 
25 #include <rtm/RTC.h>
26 #include <rtm/CdrBufferBase.h>
27 #include <rtm/DataPortStatus.h>
28 
29 namespace RTC
30 {
55  typedef std::basic_streambuf<char> StreambufType;
57  {
58  public:
70  virtual ~LogstreamBase(void){};
71 
93  virtual bool init(const coil::Properties& prop) = 0;
94 
95  virtual StreambufType* getStreamBuffer() = 0;
96 
97  };
98 
100 
101 #if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
103 #endif
104 };
105 
106 #ifdef __GNUC__
108 #endif
109 
110 #endif // RTC_LOGSTREAMBASE_H
DataPortStatus class.
RT-Component.
#define DLL_PLUGIN
Definition: Factory.h:40
virtual StreambufType * getStreamBuffer()=0
virtual ~LogstreamBase(void)
Destructor.
Definition: LogstreamBase.h:70
GlobalFactory template class.
Definition: Factory.h:583
virtual bool init(const coil::Properties &prop)=0
Initializing configuration.
coil::GlobalFactory< LogstreamBase > LogstreamFactory
Definition: LogstreamBase.h:99
Definition: LogstreamBase.h:56
Singleton template class.
Definition: Singleton.h:106
std::basic_streambuf< char > StreambufType
Definition: LogstreamBase.h:55
#define EXTERN
Definition: Factory.h:42
log_streambuf and log_stream class
Class represents a set of properties.
Definition: Properties.h:101
Property list class (derived from Java Properties)
RTComponent header.