OpenRTM-aist  1.2.1
SdoServiceConsumerBase.h
Go to the documentation of this file.
1 // -*- C++ -*-
20 #ifndef RTC_SDOSERVICECONSUMERBASE_H
21 #define RTC_SDOSERVICECONSUMERBASE_H
22 
23 #include <coil/Mutex.h>
24 #include <coil/Factory.h>
25 #include <coil/Timer.h>
26 #include <rtm/RTObject.h>
27 #include <rtm/idl/SDOPackageStub.h>
28 
29 namespace RTC
30 {
138  {
139  public:
148 
173  virtual bool init(RTObject_impl& rtobj,
174  const SDOPackage::ServiceProfile& profile) = 0;
196  virtual bool reinit(const SDOPackage::ServiceProfile& profile) = 0;
197 
213  virtual const SDOPackage::ServiceProfile& getProfile() const = 0;
214 
228  virtual void finalize() = 0;
229  };
230 
238  typedef ::coil::GlobalFactory<
240 
241 #if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
242 
249  EXTERN template class DLL_PLUGIN
250  ::coil::GlobalFactory< ::RTC::SdoServiceConsumerBase >;
251 #endif
252 }; // namespace RTC
253 
254 #ifdef __GNUC__
256 #endif
257 
258 #endif // RTC_SDOSERVICECONSUMERBASE_H
RT-Component.
RT-Component class.
Definition: RTObject.h:89
Timer class.
virtual bool reinit(const SDOPackage::ServiceProfile &profile)=0
Reinitialization function of the consumer class.
Definition: SdoServiceConsumerBase.h:137
Singleton template class.
Definition: Singleton.h:106
virtual const SDOPackage::ServiceProfile & getProfile() const =0
Getting ServiceProfile.
virtual void finalize()=0
Finalization.
virtual bool init(RTObject_impl &rtobj, const SDOPackage::ServiceProfile &profile)=0
Initialization function of the consumer class.
#define EXTERN
Definition: Factory.h:42
::coil::GlobalFactory< ::RTC::SdoServiceConsumerBase > SdoServiceConsumerFactory
typedef of sdoServiceConsumerFactory
Definition: SdoServiceConsumerBase.h:239
virtual ~SdoServiceConsumerBase()
virtual destructor
Definition: SdoServiceConsumerBase.h:147
RT component base class.