32 #include <SimoxUtility/algorithm/string/string_tools.h>
42 entries.push_back(entry);
52 writer->body.line(
"/**");
56 std::string doc = entry->getDoxString();
57 std::string delimiters =
"\n";
60 for (std::string line : doclines)
62 writer->body.line(
" * " + line);
67 writer->body.line(
"*/");
81 std::vector<std::string> header;
82 header.push_back(
"Name");
83 header.push_back(
"Type");
84 header.push_back(
"Default value");
85 header.push_back(
"Description");
92 std::vector<std::string> row;
93 row.push_back(parameter.attribute_value(
"name"));
94 std::string nestedType = parameter.attribute_value(
"type");
96 if (variantInfo->getNestedHumanNameFromBaseName(nestedType).compare(
"") != 0)
98 row.push_back(variantInfo->getNestedHumanNameFromBaseName(nestedType));
102 row.push_back(nestedType);
106 std::string defaultValue = parameter.attribute_value_or_default(
"default",
"");
108 if (defaultValue.size() > 0)
112 jsonObject->fromString(defaultValue);
113 SerializablePtr obj = jsonObject->deserializeIceObject();
114 VariantContainerBasePtr result = VariantContainerBasePtr::dynamicCast(obj);
115 std::string resultString = result->toString();
116 resultString = simox::alg::replace_all(resultString,
"\n",
"<br>");
117 row.push_back(resultString);
119 catch (Ice::Exception& e)
121 ARMARX_WARNING_S <<
"Cannot deserialize defaultValue of parameter " << parameter.attribute_value(
"name") <<
": \"" << defaultValue <<
"\"\n" << e.ice_id() <<
":\n" << e.what() <<
"\n" << e.ice_stackTrace();
130 row.push_back(parameter.attribute_value_or_default(
"description",
" "));
145 if (transition.has_attribute(
"from") && transition.has_attribute(
"to") && transition.has_attribute(
"eventName"))
147 graph->addTransition(
DoxTransitionPtr(
new DoxTransition(transition.attribute_value(
"from"), transition.attribute_value(
"to"), transition.attribute_value(
"eventName"))));