18 s <<
" --" << param.getFullParamName();
19 if (!param.defaultValue.empty())
21 if (param.type ==
"vector<int>" || param.type ==
"vector<double>" || param.type ==
"vector<string>") { s <<
" \"";}
22 s <<
" " << param.defaultValue;
23 if (param.type ==
"vector<int>" || param.type ==
"vector<double>" || param.type ==
"vector<string>") { s <<
" \"";}
29 s <<
" <mandatory_value>";
33 s <<
" <optional_value>";
48 s <<
" --" << param.getFullParamName();
49 if (!param.defaultValue.empty())
51 if (param.type ==
"vector<int>" || param.type ==
"vector<double>" || param.type ==
"vector<string>") { s <<
" \""; }
52 s <<
" " << param.defaultValue;
53 if (param.type ==
"vector<int>" || param.type ==
"vector<double>" || param.type ==
"vector<string>") { s <<
" \""; }
57 s <<
" <mandatory_value>";
67 s <<
" The device can be launched by yarpdev using one of the following examples (with and without all optional parameters):\n";
68 s <<
" \\code{.unparsed}\n";
73 s <<
" \\code{.unparsed}\n";
89 param_old = param_curr;
93 if (param_curr->isParameter())
95 s << param_curr->param.getParamOnly() <<
" ";
97 if (!param_curr->param.defaultValue.empty())
99 s << param_curr->param.defaultValue <<
"\n";
103 if (param_curr->param.required)
105 s <<
"<mandatory_value>" <<
"\n";
109 s <<
"<optional_value>" <<
"\n";
114 else if (param_curr != param_old)
117 s <<
"[ " << param_curr->name <<
" ]\n";
std::string generateYarpdevStringAllParams()
std::string generateYarpdevFile()
std::string generateYarpdevDoxyString()
std::deque< Parameter > m_params
SectionHandler m_sectionGroup
std::string generateYarpdevStringMandatoryParamsOnly()
SectionNode * iterator_next()
SectionNode * iterator_start()
SectionNode * iterator_get()
std::string escapeQuotes(const std::string &str)