22#ifndef mia_core_xmlinterface_hh
23#define mia_core_xmlinterface_hh
52 typedef std::shared_ptr<CXMLElement>
Pointer;
115 std::vector<CXMLElement::Pointer>
get_children(
const char *name)
const;
122 struct CXMLElementImpl *impl;
123 friend CXMLElementImpl;
178 std::string
write_to_string(
const char *encoding = NULL,
bool formatted =
true)
const;
184 std::string m_last_error;
facate for an XML document
CXMLElement::Pointer create_root_node(const char *name)
bool read_from_string(const char *init)
CXMLDocument(const char *init)
std::string write_to_string(const char *encoding=NULL, bool formatted=true) const
CXMLElement::Pointer get_root_node() const
This class implements a facade for the xml Element.
const std::string get_attribute(const std::string &name) const
CXMLElement(const char *name)
CXMLElement(const CXMLElement &orig)=delete
std::vector< CXMLElement::Pointer > get_children(const char *name) const
void set_child_text(const std::string &value)
const std::string & get_content() const
void set_attribute(const char *name, const std::string &value)
Set an attribute of the node.
CXMLElement::Pointer add_child(const char *name)
add a new child element
std::shared_ptr< CXMLElement > Pointer
const std::vector< CXMLElement::Pointer > & get_all_children() const
const std::string & get_name() const
#define NS_MIA_BEGIN
conveniance define to start the mia namespace
#define EXPORT_CORE
Macro to manage Visual C++ style dllimport/dllexport.
#define NS_MIA_END
conveniance define to end the mia namespace