16#ifndef A_UTILS_UTIL_XML_DOM_HEADER_INCLUDED_
17#define A_UTILS_UTIL_XML_DOM_HEADER_INCLUDED_
75 const std::string& def_value = std::string())
const;
134 bool setAttribute(
const std::string& name,
const std::string& strValue);
246 const std::string& attribute,
262 const std::string& attribute,
264 std::size_t number_of_nodes);
304 class Implementation;
344 bool load(
const std::string& file_path);
351 bool save(
const std::string& file_path)
const;
386 bool findNode(
const std::string& query, DOMElement& element_ptr)
const;
411 class Implementation;
413 friend class DOMElement;
Definition stack_ptr_decl.h:32
Representation for an element in the DOM.
Definition dom.h:47
bool hasAttribute(const std::string &name) const
DOMElement createChild(const std::string &name)
DOMElement getChild(const std::string &name) const
DOMAttributes getAttributes() const
DOMElement createChildBefore(const std::string &name, const DOMElement &before)
DOMElementList getChildren() const
bool removeChild(const std::string &name)
bool sortNodes(const std::string &query, SortingOrder order, std::size_t number_of_nodes)
std::string getAttribute(const std::string &name, const std::string &def_value=std::string()) const
std::string getPath() const
bool sortNodes(const std::string &query, SortingOrder order)
bool findNode(const std::string &query, DOMElement &element_ptr) const
std::string getData() const
DOMElement(const DOMElement &element)
friend bool operator==(const DOMElement &lhs, const DOMElement &rhs)
bool setName(const std::string &name)
bool eraseAttribute(const std::string &name)
bool findNodes(const std::string &query, DOMElementList &elements) const
std::string getName() const
bool setAttribute(const std::string &name, const std::string &strValue)
bool sortNodes(const std::string &query, const std::string &attribute, SortingOrder order, std::size_t number_of_nodes)
bool setData(const std::string &data)
std::size_t sortNodes(const std::string &query, const std::string &attribute, SortingOrder order)
DOMElement & operator=(const DOMElement &element)
DOMElement getParent() const
DOMException(const std::string &what)
XML parser to read and write standard XML files.
Definition dom.h:318
std::string getLastError() const
std::string toString() const
DOMElement getRoot() const
bool save(const std::string &file_path) const
DOM & operator=(const DOM &dom)
bool load(const std::string &file_path)
bool findNodes(const std::string &query, DOMElementList &elements) const
bool fromString(const std::string &xml)
bool findNode(const std::string &query, DOMElement &element_ptr) const
Serves as component for handling XML.
Definition xml.h:20
bool operator==(const DOM &lhs, const DOM &rhs)
bool operator!=(const DOMElement &lhs, const DOMElement &rhs)
std::map< std::string, std::string > DOMAttributes
Type alias for DOM attributes.
Definition dom.h:44
std::list< DOMElement > DOMElementList
Tyoe alias for DOMElement lists.
Definition dom.h:42
Serves as the root component, with common functionality documented in core functionality.
Definition base.h:24
SortingOrder
Flags for functions that need to sort elements.
Definition enums.h:23