OpenRTM-aist  1.2.2
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  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 
99  typedef coil::GlobalFactory<LogstreamBase> LogstreamFactory;
100 
101 #if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
102  EXTERN template class DLL_PLUGIN coil::GlobalFactory<LogstreamBase>;
103 #endif
104 };
105 
106 #ifdef __GNUC__
107 extern template class coil::Singleton<coil::GlobalFactory<RTC::LogstreamBase> >;
108 #endif
109 
110 #endif // RTC_LOGSTREAMBASE_H
DataPortStatus class
RTコンポーネント
virtual StreambufType * getStreamBuffer()=0
virtual ~LogstreamBase(void)
デストラクタ
Definition: LogstreamBase.h:70
virtual bool init(const coil::Properties &prop)=0
設定初期化
coil::GlobalFactory< LogstreamBase > LogstreamFactory
Definition: LogstreamBase.h:99
coil::Properties Properties
Definition: RTC.h:83
Definition: LogstreamBase.h:56
std::basic_streambuf< char > StreambufType
Definition: LogstreamBase.h:55
RTComponent header