| 621 | } |
| 622 | |
| 623 | string Element::asString() const |
| 624 | { |
| 625 | string res = "<" + getCategory(); |
| 626 | if (getName() != EMPTY_STRING) |
| 627 | { |
| 628 | res += " name=\"" + getName() + "\""; |
| 629 | } |
| 630 | for (const string& attrName : getAttributeNames()) |
| 631 | { |
| 632 | res += " " + attrName + "=\"" + getAttribute(attrName) + "\""; |
| 633 | } |
| 634 | res += ">"; |
| 635 | return res; |
| 636 | } |
| 637 | |
| 638 | void Element::validateRequire(bool expression, bool& res, string* message, const string& errorDesc) const |
| 639 | { |
no test coverage detected