RTPreemptEC.h
Go to the documentation of this file.
1 // -*- C++ -*-
18 #ifndef OPENRTM_RTPREEMPTEC_H
19 #define OPENRTM_RTPREEMPTEC_H
20 
21 #include <rtm/RTC.h>
22 #include <rtm/Manager.h>
24 
25 namespace OpenRTM
26 {
127  : public virtual ::RTC::PeriodicExecutionContext
128  {
129  public:
143  RTPreemptEC();
144 
158  virtual ~RTPreemptEC();
159 
179  virtual int svc(void);
180 
200  template <class T>
201  void getProperty(coil::Properties& prop, const char* key, T& value)
202  {
203  if (prop.findNode(key) != 0)
204  {
205  T tmp;
206  if (coil::stringTo(tmp, prop[key].c_str()))
207  {
208  value = tmp;
209  }
210  }
211  }
212 
213  private:
215  int m_policy;
217  };
218 };
219 
220 extern "C"
221 {
230 };
231 
232 #endif // OPENRTM_RTPREEMPTEC_H
233 
bool stringTo(To &val, const char *str)
Convert the given std::string to object.
Definition: stringutil.h:597
void DLL_EXPORT RTPreemptECInit(RTC::Manager *manager)
Initialization function to register to ECFactory.
Manager class.
Definition: Manager.h:80
RTComponent manager class.
void getProperty(coil::Properties &prop, const char *key, T &value)
Thread execution function for ExecutionContext.
Definition: RTPreemptEC.h:201
virtual ~RTPreemptEC()
Destructor.
Definition: RTPreemptEC.cpp:83
#define DLL_EXPORT
Definition: PluginC.cpp:8
Properties *const findNode(const std::string &key) const
Get node of properties.
Definition: Properties.cpp:439
prop
Organization::get_organization_property ();.
Class represents a set of properties.
Definition: Properties.h:101
RTPreemptEC()
Default Constructor.
Definition: RTPreemptEC.cpp:41
PeriodicExecutionContext class.
RTComponent header.
PeriodicExecutionContext class.
virtual int svc(void)
Thread execution function for ExecutionContext.
Definition: RTPreemptEC.cpp:94
RTPreemptEC епеще╣
Definition: RTPreemptEC.h:126


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Thu Jun 6 2019 19:26:00