OpenRTM-aist  2.0.0
LogstreamBase.h
[詳解]
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 
95  virtual StreambufType* getStreamBuffer() = 0;
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
RTC::LogstreamBase
Definition: LogstreamBase.h:56
DataPortStatus.h
DataPortStatus class
RTC::LogstreamBase::getStreamBuffer
virtual StreambufType * getStreamBuffer()=0
RTC::LogstreamBase::init
virtual bool init(const coil::Properties &prop)=0
設定初期化
RTC::LogstreamBase::~LogstreamBase
virtual ~LogstreamBase()=default
デストラクタ
RTC::StreambufType
coil::LogStreamBuffer StreambufType
Definition: LogstreamBase.h:55
RTC
RTコンポーネント
RTC::Properties
coil::Properties Properties
Definition: RTC.h:72
RTC.h
RTComponent header
CdrBufferBase.h
RTC::LogstreamFactory
coil::GlobalFactory< LogstreamBase > LogstreamFactory
Definition: LogstreamBase.h:99