28 #include <SimoxUtility/algorithm/string/string_tools.h>
36 std::string description,
40 std::string casesensitivity,
41 std::string requirement,
48 output = simox::alg::replace_first(output,
"%description%",
formatDescription(description));
50 output = simox::alg::replace_first(output,
"%default%",
formatDefault(default_));
51 output = simox::alg::replace_first(output,
"%casesensitive%",
formatCaseSensitivity(casesensitivity));
52 output = simox::alg::replace_first(output,
"%required%",
formatRequirement(requirement));
53 output = simox::alg::replace_first(output,
"%regex%",
formatRegex(regex));
61 return std::string(
"%name%:")
86 if (!
min.empty() &&
max.empty())
90 else if (
min.empty() && !
max.empty())
94 else if (!
min.empty() && !
max.empty())
124 std::string valueStrings;
126 if (mapValues.size() > 0)
128 valueStrings +=
" - Possible values: ";
130 std::vector<std::string>::iterator it = mapValues.begin();
132 while (it != mapValues.end())
141 valueStrings += (it != mapValues.end() ?
", " :
"\n");
155 if (!details.empty())
157 std::stringstream strStream;
158 strStream << std::setfill(
' ') << std::left << std::setw(20) << name;
159 strStream << details;
161 return " - " + strStream.str() +
"\n";
164 return std::string();
169 return "==================================================================\n"
171 +
"==================================================================\n\n";