30 #include <SimoxUtility/algorithm/string/string_tools.h>
40 std::string description,
44 std::string casesensitivity,
45 std::string requirement,
47 std::vector<std::string>
values,
53 output = simox::alg::replace_first(output,
"%description%",
formatDescription(description));
55 output = simox::alg::replace_first(output,
"%default%",
formatDefault(default_));
56 output = simox::alg::replace_first(output,
"%casesensitive%",
formatCaseSensitivity(casesensitivity));
57 output = simox::alg::replace_first(output,
"%required%",
formatRequirement(requirement));
58 output = simox::alg::replace_first(output,
"%regex%",
formatRegex(regex));
68 return std::string(
"<property name=\"%name%\">\n")
91 return "<description>" +
Encode(description) +
"</description>\n";
132 std::string valueStrings;
134 if (mapValues.size() > 0)
136 valueStrings +=
" <values>\n";
138 std::vector<std::string>::iterator it = mapValues.begin();
140 while (it != mapValues.end())
150 valueStrings +=
" </values>\n";
164 return " <value>" +
value +
"</value>\n";
170 if (!details.empty())
172 return " <attribute name=\"" +
getPrefix() + name +
"\">" + details +
"</attribute>\n";
175 return std::string();
181 return "<!-- " + headerText +
" -->\n\n";