28 #include <SimoxUtility/algorithm/string/string_tools.h>
37 std::string description,
41 std::string casesensitivity,
42 std::string requirement,
44 std::vector<std::string>
values,
50 output = simox::alg::replace_first(output,
"%description%",
formatDescription(description));
52 output = simox::alg::replace_first(output,
"%default%",
formatDefault(default_));
53 output = simox::alg::replace_first(output,
"%casesensitive%",
formatCaseSensitivity(casesensitivity));
54 output = simox::alg::replace_first(output,
"%required%",
formatRequirement(requirement));
55 output = simox::alg::replace_first(output,
"%regex%",
formatRegex(regex));
63 return std::string(
"\\prop %name%: \n")
64 +
"%description%<br />\n"
88 if (!
min.empty() &&
max.empty())
92 else if (
min.empty() && !
max.empty())
96 else if (!
min.empty() && !
max.empty())
126 std::string valueStrings;
128 if (mapValues.size() > 0)
130 valueStrings +=
" - Possible values: {";
132 std::vector<std::string>::iterator it = mapValues.begin();
134 while (it != mapValues.end())
143 if (it != mapValues.end())
145 valueStrings +=
", ";
164 if (!details.empty())
166 std::stringstream strStream;
167 strStream << std::setfill(
' ') << std::left << std::setw(20) << name;
168 strStream << details;
170 return " - " + strStream.str() +
"\n";
173 return std::string();
184 const std::string& text)
187 std::string docComment =
"\n";
189 std::stringstream textStream(text);
191 while (std::getline(textStream, line,
'\n'))
193 docComment +=
"" + line +
"\n";