26 #include <SimoxUtility/algorithm/string/string_tools.h>
45 entries.push_back(entry);
57 writer->body.line(
"/**");
61 std::string doc = entry->getDoxString();
62 std::string delimiters =
"\n";
65 for (std::string line : doclines)
67 writer->body.line(
" * " + line);
71 writer->body.line(
"*/");
86 std::vector<std::string> header;
87 header.push_back(
"Name");
88 header.push_back(
"Type");
89 header.push_back(
"Default value");
90 header.push_back(
"Description");
97 std::vector<std::string> row;
98 row.push_back(parameter.attribute_value(
"name"));
99 std::string nestedType = parameter.attribute_value(
"type");
101 if (variantInfo->getNestedHumanNameFromBaseName(nestedType).compare(
"") != 0)
103 row.push_back(variantInfo->getNestedHumanNameFromBaseName(nestedType));
107 row.push_back(nestedType);
111 std::string defaultValue = parameter.attribute_value_or_default(
"default",
"");
113 if (defaultValue.size() > 0)
117 jsonObject->fromString(defaultValue);
118 SerializablePtr obj = jsonObject->deserializeIceObject();
119 VariantContainerBasePtr result = VariantContainerBasePtr::dynamicCast(obj);
120 std::string resultString = result->toString();
121 resultString = simox::alg::replace_all(resultString,
"\n",
"<br>");
122 row.push_back(resultString);
124 catch (Ice::Exception& e)
127 << parameter.attribute_value(
"name") <<
": \"" << defaultValue
129 << e.ice_id() <<
":\n"
131 << e.ice_stackTrace();
140 row.push_back(parameter.attribute_value_or_default(
"description",
" "));
155 if (transition.has_attribute(
"from") && transition.has_attribute(
"to") &&
156 transition.has_attribute(
"eventName"))
158 graph->addTransition(
160 transition.attribute_value(
"to"),
161 transition.attribute_value(
"eventName"))));