22 #ifndef mia_core_xmlinterface_hh 23 #define mia_core_xmlinterface_hh 51 typedef std::shared_ptr<CXMLElement>
Pointer;
83 void set_attribute(
const char *name,
const std::string& value);
89 void set_child_text(
const std::string& value);
92 const std::string& get_name()
const;
100 const std::string get_attribute(
const std::string& name)
const;
105 const std::vector<CXMLElement::Pointer>& get_all_children()
const;
114 std::vector<CXMLElement::Pointer> get_children(
const char *name)
const;
117 const std::string& get_content()
const;
121 struct CXMLElementImpl *impl;
122 friend CXMLElementImpl;
168 bool read_from_string(
const char *init);
176 std::string write_to_string(
const char *encoding = NULL,
bool formatted =
true)
const;
182 std::string m_last_error;
std::shared_ptr< CXMLElement > Pointer
class EXPORT_CORE CXMLDocument
#define NS_MIA_BEGIN
conveniance define to start the mia namespace
facate for an XML document
This class implements a facade for the xml Element.
#define EXPORT_CORE
Macro to manage Visual C++ style dllimport/dllexport.
#define NS_MIA_END
conveniance define to end the mia namespace