PandA-2024.02
Public Member Functions
xml_element Class Reference

#include <xml_element.hpp>

Inheritance diagram for xml_element:
Inheritance graph
[legend]
Collaboration diagram for xml_element:
Collaboration graph
[legend]

Public Member Functions

 xml_element (const std::string &_name)
 constructor More...
 
void print (std::ostream &os, bool formatted, simple_indent *pp) const override
 Print the class. More...
 
- Public Member Functions inherited from xml_child
 xml_child (const std::string &_name)
 constructor More...
 
void print (std::ostream &os, bool formatted, simple_indent *pp) const override
 Print the class. More...
 
xml_elementadd_child_element (const std::string &name)
 Add a child element to this node. More...
 
xml_elementadd_child_element (const xml_nodeRef &node)
 Add a child element to this node starting from a given node. More...
 
xml_text_nodeadd_child_text (const std::string &content)
 Append a new text node. More...
 
xml_text_nodeget_child_text ()
 Get the first child text content node. More...
 
const xml_text_nodeget_child_text () const
 Get the first child text content node. More...
 
xml_comment_nodeadd_child_comment (const std::string &content)
 Append a new comment node. More...
 
xml_att_decl_nodeadd_child_attribute_declaration (const std::string &name)
 Append a new attribute declaration node. More...
 
void remove_child (xml_node *el)
 Remove the child node. More...
 
node_list const & get_children ()
 Obtain the list of child nodes. More...
 
const node_listget_children () const
 Obtain the list of child nodes. More...
 
bool has_child () const
 
const CustomSet< xml_nodeRef > CGetDescendants (const std::string &path) const
 Return the set of descendants with a specific path. More...
 
- Public Member Functions inherited from xml_node
 xml_node (const std::string &_name)
 constructor More...
 
virtual ~xml_node ()=default
 destructor More...
 
std::string get_name () const
 Get the name of this node. More...
 
void set_name (const std::string &_name)
 Set the name of this node. More...
 
int get_line () const
 Discover at what line number this node occurs in the XML file. More...
 
void set_line (int _line)
 Set the line this node occurs in the XML file. More...
 
- Public Member Functions inherited from attribute_sequence
void print_attributes (std::ostream &os) const
 Print the class. More...
 
xml_attributeset_attribute (const std::string &name, const std::string &value)
 Set the value of the attribute with this name, and optionally with this namespace. More...
 
xml_attributeget_attribute (const std::string &name) const
 Obtain the attribute with this name. More...
 
attribute_list get_attributes ()
 Remove the attribute with this name. More...
 
const attribute_listget_attributes () const
 Obtain the list of attributes for this element. More...
 
bool has_attributes () const
 

Additional Inherited Members

- Public Types inherited from xml_node
using node_list = std::list< xml_nodeRef >
 type for list of xml nodes More...
 
- Public Types inherited from attribute_sequence
using attribute_list = std::list< xml_attribute * >
 
- Static Public Member Functions inherited from xml_node
static void convert_unescaped (std::string &ioString)
 Convert unescaped characters. More...
 
static void convert_escaped (std::string &ioString)
 Convert escaped characters. More...
 

Detailed Description

Definition at line 60 of file xml_element.hpp.

Constructor & Destructor Documentation

◆ xml_element()

xml_element::xml_element ( const std::string &  _name)
inlineexplicit

constructor

Definition at line 66 of file xml_element.hpp.

Member Function Documentation

◆ print()

void xml_element::print ( std::ostream &  os,
bool  formatted,
simple_indent pp 
) const
inlineoverridevirtual

The documentation for this class was generated from the following file:

Generated on Mon Feb 12 2024 13:04:11 for PandA-2024.02 by doxygen 1.8.13