OpenRTM-aist  2.1.0
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  using StreambufType = coil::LogStreamBuffer;
57  {
58  public:
70  virtual ~LogstreamBase() = default;
71 
93  virtual bool init(const coil::Properties& prop) = 0;
94 
96 
97  };
98 
99  using LogstreamFactory = coil::GlobalFactory<LogstreamBase>;
100 } // namespace RTC
101 
102 #if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
103 EXTERN template class DLL_PLUGIN coil::GlobalFactory<RTC::LogstreamBase>;
104 #elif defined(__GNUC__)
105 EXTERN template class coil::GlobalFactory<RTC::LogstreamBase>;
106 #endif
107 
108 #endif // RTC_LOGSTREAMBASE_H
DataPortStatus class.
RTComponent header.
Definition: LogstreamBase.h:57
virtual bool init(const coil::Properties &prop)=0
Initializing configuration.
virtual StreambufType * getStreamBuffer()=0
virtual ~LogstreamBase()=default
Destructor.
RT-Component.
coil::GlobalFactory< LogstreamBase > LogstreamFactory
Definition: LogstreamBase.h:99
coil::LogStreamBuffer StreambufType
Definition: LogstreamBase.h:55
coil::Properties Properties
Definition: RTC.h:72