80 const std::string& configName =
"",
81 const std::string& configDomain =
"ArmarX")
const
83 return create(properties, configName, configDomain);
94 const std::string& configName =
"",
95 const std::string& configDomain =
"ArmarX")
const
98 for (
const auto& elem : dict)
100 prop->setProperty(elem.first, elem.second);
102 return create(std::move(prop), configName, configDomain);
106 template <
class ComponentT>
126 template <
class ComponentT>
133 ComponentFactory::RegisterElement{registrationName, componentCreator};
static TPtr create(Ice::PropertiesPtr properties=Ice::createProperties(), const std::string &configName="", const std::string &configDomain="ArmarX")
Factory method for a component.
Registrar< ComponentCreatorObject > ComponentFactory
holds all registered components
Ice::PropertiesPtr createProperties()
::IceInternal::Handle<::Ice::Properties > PropertiesPtr
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceInternal::Handle< Component > ComponentPtr
Component smart pointer type.
The ComponentCreatorObject stores the create call for a Component.
friend struct RegisterComponent
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 ...
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.
RegisterComponent(std::string registrationName)