43 #ifndef XML_ELEMENT_HPP 44 #define XML_ELEMENT_HPP 75 THROW_ASSERT(pp,
"Null indenter object: unexpected condition");
bool has_attributes() const
xml_element(const std::string &_name)
constructor
REF_FORWARD_DECL(xml_element)
exceptions managed by PandA
std::string get_name() const
Get the name of this node.
void print_attributes(std::ostream &os) const
Print the class.
void print(std::ostream &os, bool formatted, simple_indent *pp) const override
Print the class.
#define STD_OPENING_CHAR
STD include.
Template definition of refcount.
Very simple pretty printer functor.
#define STD_CLOSING_CHAR
Special closing character used to close the current nested level.
xml_text_node * get_child_text()
Get the first child text content node.
void print(std::ostream &os, bool formatted, simple_indent *pp) const override
Print the class.
node_list const & get_children()
Obtain the list of child nodes.
#define THROW_ASSERT(cond, str_expr)
helper function used to check an assert and if needed to throw an error in a standard way ...