ComponentCreatorObject Struct Reference

The ComponentCreatorObject stores the create call for a Component. More...

#include <ArmarXCore/core/ComponentFactories.h>

Public Member Functions

ComponentPtr operator() (Ice::PropertiesPtr properties=Ice::createProperties(), const std::string &configName="", const std::string &configDomain="ArmarX") const
 Calls armarx::Component::create<T> for the type passed to createComponentCreator. More...
 
ComponentPtr operator() (Ice::PropertyDict dict, const std::string &configName="", const std::string &configDomain="ArmarX") const
 Creates ice properties form the given dictionary and calls armarx::Component::create<T> for the type passed to createComponentCreator. More...
 

Friends

template<class ComponentT >
struct RegisterComponent
 

Detailed Description

The ComponentCreatorObject stores the create call for a Component.

It is used with the component factory. Use the class armarx::RegisterComponent to perform registration.

See also
RegisterComponent

Definition at line 70 of file ComponentFactories.h.

Member Function Documentation

◆ operator()() [1/2]

ComponentPtr operator() ( Ice::PropertiesPtr  properties = Ice::createProperties(),
const std::string &  configName = "",
const std::string &  configDomain = "ArmarX" 
) const
inline

Calls armarx::Component::create<T> for the type passed to createComponentCreator.

See also
armarx::Component::create
Returns
The created component.

Definition at line 77 of file ComponentFactories.h.

◆ operator()() [2/2]

ComponentPtr operator() ( Ice::PropertyDict  dict,
const std::string &  configName = "",
const std::string &  configDomain = "ArmarX" 
) const
inline

Creates ice properties form the given dictionary and calls armarx::Component::create<T> for the type passed to createComponentCreator.

Parameters
dictThe properties given as Ice::PropertyDict
See also
armarx::Component::create
Returns
The created component.

Definition at line 88 of file ComponentFactories.h.

+ Here is the call graph for this function:

Friends And Related Function Documentation

◆ RegisterComponent

friend struct RegisterComponent
friend

Definition at line 98 of file ComponentFactories.h.


The documentation for this struct was generated from the following file: