Returns a string with an html formatted text containing the descriptions as returned by SplitDescription
- Parameters
-
vec | vector of Description for the individual arguments. First element is the global description of the command or service. |
- Returns
- string with html formatted text
Definition at line 140 of file Description.cc.
References i, if(), and str.
Referenced by FactGui::AddDescription().
143 str <<
"<H3>" << vec[0].name <<
"</H3>";
146 for (vector<Description>::const_iterator
i=vec.begin()+1;
i!=vec.end();
i++)
147 str <<
" <font color='maroon'><" <<
i->name <<
"></font>";
150 str <<
" <no arguments>";
152 str <<
"<P>" << vec[0].comment <<
"<P>";
156 for (vector<Description>::const_iterator
i=vec.begin()+1;
i!=vec.end();
i++)
159 "<td><font color='maroon'>" <<
i->name <<
"</font>";
161 if (
i->unit.empty() && !
i->comment.empty() && !
i->name.empty())
166 if (!
i->unit.empty())
167 str <<
"<td><font color='green'>[" <<
i->unit <<
"]</font>";
169 if (!
i->unit.empty() && !
i->comment.empty())
174 "<td><font color='navy'>" <<
i->comment <<
"</font></td>"