src
ext
ec
rtpreempt
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
>
23
#include <
rtm/PeriodicExecutionContext.h
>
24
25
namespace
OpenRTM
26
{
126
class
RTPreemptEC
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
:
214
int
m_priority
;
215
int
m_policy
;
216
int
m_waitoffset
;
217
};
218
};
219
220
extern
"C"
221
{
229
void
DLL_EXPORT
RTPreemptECInit
(
RTC::Manager
*
manager
);
230
};
231
232
#endif // OPENRTM_RTPREEMPTEC_H
233
OpenRTM
Definition:
RTPreemptEC.cpp:32
coil::stringTo
bool stringTo(To &val, const char *str)
Convert the given std::string to object.
Definition:
stringutil.h:597
RTPreemptECInit
void DLL_EXPORT RTPreemptECInit(RTC::Manager *manager)
Initialization function to register to ECFactory.
Definition:
RTPreemptEC.cpp:176
RTC::Manager
Manager class.
Definition:
Manager.h:80
AddRemoveMemberSDOPackageTest.manager
manager
Definition:
AddRemoveMemberSDOPackageTest.py:28
OpenRTM::RTPreemptEC::m_policy
int m_policy
Definition:
RTPreemptEC.h:215
Manager.h
RTComponent manager class.
OpenRTM::RTPreemptEC::getProperty
void getProperty(coil::Properties &prop, const char *key, T &value)
Thread execution function for ExecutionContext.
Definition:
RTPreemptEC.h:201
OpenRTM::RTPreemptEC::m_waitoffset
int m_waitoffset
Definition:
RTPreemptEC.h:216
coil::Properties::findNode
Properties *const findNode(const std::string &key) const
Get node of properties.
Definition:
Properties.cpp:444
OpenRTM::RTPreemptEC::~RTPreemptEC
virtual ~RTPreemptEC()
Destructor.
Definition:
RTPreemptEC.cpp:83
DLL_EXPORT
#define DLL_EXPORT
Definition:
PluginC.cpp:8
OrganizationSDOPackageTest.prop
prop
Organization::get_organization_property ();.
Definition:
OrganizationSDOPackageTest.py:107
coil::Properties
Class represents a set of properties.
Definition:
Properties.h:101
OpenRTM::RTPreemptEC::RTPreemptEC
RTPreemptEC()
Default Constructor.
Definition:
RTPreemptEC.cpp:41
PeriodicExecutionContext.h
PeriodicExecutionContext class.
RTC.h
RTComponent header.
RTC::PeriodicExecutionContext
PeriodicExecutionContext class.
Definition:
PeriodicExecutionContext.h:64
OpenRTM::RTPreemptEC::m_priority
int m_priority
Definition:
RTPreemptEC.h:214
OpenRTM::RTPreemptEC::svc
virtual int svc(void)
Thread execution function for ExecutionContext.
Definition:
RTPreemptEC.cpp:94
OpenRTM::RTPreemptEC
RTPreemptEC епеще╣
Definition:
RTPreemptEC.h:126
openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Feb 28 2022 23:00:45