This class implements a facade for the xml Element. More...
#include <mia/core/xmlinterface.hh>
Public Types | |
typedef std::shared_ptr< CXMLElement > | Pointer |
Public Member Functions | |
CXMLElement::Pointer | add_child (const char *name) |
add a new child element More... | |
CXMLElement (const char *name) | |
CXMLElement (const CXMLElement &orig)=delete | |
CXMLElement & | operator= (const CXMLElement &orig)=delete |
void | set_attribute (const char *name, const std::string &value) |
Set an attribute of the node. More... | |
void | set_child_text (const std::string &value) |
~CXMLElement () | |
Friends | |
class | CXMLDocument |
This class implements a facade for the xml Element.
This class implements a facade for the XML IO to make it (later) possible to change the used XML implementation. It is also useful to reduce the compile time dependencies for programs that use MIA.
Definition at line 42 of file xmlinterface.hh.
typedef std::shared_ptr<CXMLElement> CXMLElement::Pointer |
Definition at line 44 of file xmlinterface.hh.
CXMLElement::CXMLElement | ( | const char * | name | ) |
CXMLElement::~CXMLElement | ( | ) |
|
delete |
CXMLElement::Pointer CXMLElement::add_child | ( | const char * | name | ) |
add a new child element
This method adds a new child element to this node
name | name tag of the new child element |
|
delete |
void CXMLElement::set_attribute | ( | const char * | name, |
const std::string & | value | ||
) |
Set an attribute of the node.
This method sets an attribute of a node
name | attribute name |
value | (string) value of the attribute |
void CXMLElement::set_child_text | ( | const std::string & | value | ) |
Set the child text of the node
value | text value to be set |
|
friend |
Definition at line 78 of file xmlinterface.hh.