10 #include "hrpsys/util/VectorConvert.h" 17 "implementation_id",
"NullComponent",
18 "type_name",
"NullComponent",
19 "description",
"null component",
20 "version", HRPSYS_PACKAGE_VERSION,
22 "category",
"example",
23 "activity_type",
"DataFlowComponent",
26 "lang_type",
"compile",
28 "conf.default.string",
"test",
29 "conf.default.intvec",
"1,2,3",
30 "conf.default.double",
"1.234",
39 m_dataIn(
"dataIn", m_data),
40 m_dataOut(
"dataOut", m_data),
41 m_NullServicePort(
"NullService"),
45 std::cout <<
"NullComponent::NullComponent()" << std::endl;
51 std::cout <<
"NullComponent::~NullComponent()" << std::endl;
58 std::cout <<
m_profile.instance_name <<
": onInitialize()" << std::endl;
86 std::cout <<
"prop[\"testconf\"] = " << prop[
"testconf"] << std::endl;
116 std::cout <<
m_profile.instance_name<<
": onActivated(" << ec_id <<
")" << std::endl;
122 std::cout <<
m_profile.instance_name<<
": onDeactivated(" << ec_id <<
")" << std::endl;
128 std::cout <<
m_profile.instance_name<<
": onExecute(" << ec_id <<
"), data = " <<
m_data.data << std::endl;
129 std::cout <<
"confstring = " <<
confstring << std::endl;
130 std::cout <<
"confintvec = ";
134 std::cout << std::endl;
135 std::cout <<
"confdouble = " <<
confdouble << std::endl;
139 std::cout <<
m_profile.instance_name <<
": read(), data = " <<
m_data.data << std::endl;
191 RTC::Create<NullComponent>,
192 RTC::Delete<NullComponent>);
ComponentProfile m_profile
png_infop png_charpp int png_charpp profile
virtual RTC::ReturnCode_t onActivated(RTC::UniqueId ec_id)
InPort< TimedDouble > m_dataIn
virtual ~NullComponent()
Destructor.
RTC::CorbaPort m_NullServicePort
coil::Properties & getProperties()
bool addOutPort(const char *name, OutPortBase &outport)
NullComponent(RTC::Manager *manager)
Constructor.
ExecutionContextHandle_t UniqueId
bool bindParameter(const char *param_name, VarType &var, const char *def_val, bool(*trans)(VarType &, const char *)=coil::stringTo)
void NullComponentInit(RTC::Manager *manager)
virtual RTC::ReturnCode_t onDeactivated(RTC::UniqueId ec_id)
virtual RTC::ReturnCode_t onExecute(RTC::UniqueId ec_id)
OutPort< TimedDouble > m_dataOut
static const char * nullcomponent_spec[]
bool addPort(PortBase &port)
virtual bool write(DataType &value)
NullService_impl m_NullService
bool addInPort(const char *name, InPortBase &inport)
std::vector< int > confintvec
bool registerFactory(coil::Properties &profile, RtcNewFunc new_func, RtcDeleteFunc delete_func)
virtual RTC::ReturnCode_t onInitialize()
bool registerProvider(const char *instance_name, const char *type_name, PortableServer::RefCountServantBase &provider)