OpenRTM-aist 2.0.2
Loading...
Searching...
No Matches
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
29namespace 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__)
103EXTERN template class DLL_PLUGIN coil::GlobalFactory<RTC::LogstreamBase>;
104#elif defined(__GNUC__)
105EXTERN template class coil::GlobalFactory<RTC::LogstreamBase>;
106#endif
107
108#endif // RTC_LOGSTREAMBASE_H
DataPortStatus class.
RTComponent header.
Definition LogstreamBase.h:57
virtual StreambufType * getStreamBuffer()=0
virtual bool init(const coil::Properties &prop)=0
Initializing configuration.
virtual ~LogstreamBase()=default
Destructor.
RT-Component.
coil::LogStreamBuffer StreambufType
Definition LogstreamBase.h:55
coil::GlobalFactory< LogstreamBase > LogstreamFactory
Definition LogstreamBase.h:99