10 static std::string global_name;
13 std::string
const& name)
15 global_createComponent =
function;
17 return global_createComponent !=
nullptr;
32 <<
"Component not registered! "
33 <<
"Make sure that the macro "
34 <<
"`ARMARX_REGISTER_COMPONENT_EXECUTABLE(YourComponentName, YourComponentName::GetDefaultName());` "
35 <<
"is present in the component source file! "
36 <<
"(If necessary, add the static function `GetDefaultName()` to your component class.)";
39 registry->addObject(global_createComponent(properties,
"",
appConfigDomain));
45 std::string configName =
"";
46 std::string configDomain =
"ArmarX";
47 bool enableLibLoading =
false;
52 app->appConfigDomain = configDomain;
53 app->appConfigName = configName;
54 app->enableLibLoading(enableLibLoading);
55 app->setName(global_name);
56 app->storeCommandLineArguments(argc, argv);
57 return app->main(argc, argv);