ArtExecutionContext.h
Go to the documentation of this file.
1 // -*- C++ -*-
19 /*
20  * $Log$
21  */
22 
23 #ifndef ArtExecutionContext_h
24 #define ArtExecutionContext_h
25 
26 #include <rtm/RTC.h>
27 
28 
29 #include <rtm/Manager.h>
31 
32 namespace RTC
33 {
35  : public virtual PeriodicExecutionContext
36  {
37  public:
39  virtual ~ArtExecutionContext();
40  virtual int svc(void);
41 
42  template <class T>
43  void getProperty(coil::Properties& prop, const char* key, T& value)
44  {
45  if (prop.findNode(key) != 0)
46  {
47  T tmp;
48  if (coil::stringTo(tmp, prop[key].c_str()))
49  {
50  value = tmp;
51  }
52  }
53  }
54 
55  private:
57  };
58 };
59 
60 extern "C"
61 {
63 };
64 
65 #endif // ArtExecutionContext_h
66 
RT-Component.
bool stringTo(To &val, const char *str)
Convert the given std::string to object.
Definition: stringutil.h:597
Manager class.
Definition: Manager.h:80
RTComponent manager class.
void getProperty(coil::Properties &prop, const char *key, T &value)
void ArtExecutionContextInit(RTC::Manager *manager)
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
PeriodicExecutionContext class.
virtual int svc(void)
Thread execution function for ExecutionContext.
RTComponent header.


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Thu Jun 6 2019 19:25:56