23std::string escapeXML(
const std::string &
src)
25 std::stringstream dst;
28 case '&': dst <<
"&";
break;
29 case '\'': dst <<
"'";
break;
30 case '"': dst <<
""";
break;
31 case '<': dst <<
"<";
break;
32 case '>': dst <<
">";
break;
33 default: dst << ch;
break;
42 std::string
const &dependents)
43 : fName(
name), fExpression(expression), fDependents(dependents)
49 return "expr::" + fName +
"('" + fExpression +
"',{" + fDependents +
"})";
54 stream <<
"\t \t Name: " << fName <<
"\t \t Expression: " << fExpression <<
"\t \t Dependents: " << fDependents
60 xml <<
"<Function Name=\"" << fName <<
"\" "
61 <<
"Expression=\"" << escapeXML(fExpression) <<
"\" "
62 <<
"Dependents=\"" << fDependents <<
"\" "
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t src
void Print(std::ostream &=std::cout) const
std::string GetCommand() const
void PrintXML(std::ostream &) const