7 static const std::string ARVIZ_TOPIC_PROPERTY_NAME =
"ArVizTopicName";
8 static const std::string ARVIZ_TOPIC_PROPERTY_DEFAULT =
"ArVizTopic";
10 static const std::string ARVIZ_STORAGE_PROPERTY_NAME =
"ArVizStorageName";
11 static const std::string ARVIZ_STORAGE_PROPERTY_DEFAULT =
"ArVizStorage";
16 return parentDerives<Component>() ? parent<Component>().getProperty<std::string>(
18 : ARVIZ_TOPIC_PROPERTY_DEFAULT;
24 return parentDerives<Component>() ? parent<Component>().getProperty<std::string>(
26 : ARVIZ_STORAGE_PROPERTY_DEFAULT;
39 if (parentDerives<ArVizComponentPluginUser>())
41 parent<ArVizComponentPluginUser>().arviz =
createClient();
50 properties->defineOptionalProperty<std::string>(
52 ARVIZ_TOPIC_PROPERTY_DEFAULT,
53 "Name of the ArViz topic");
55 if (!properties->hasDefinition(
makePropertyName(ARVIZ_STORAGE_PROPERTY_NAME)))
57 properties->defineOptionalProperty<std::string>(
59 ARVIZ_STORAGE_PROPERTY_DEFAULT,
60 "Name of the ArViz storage");