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)
noexcept;
351 bool save(
const std::string& file_path)
const noexcept;
386 bool findNode(const std::
string& query, DOMElement& element_ptr) const;
411 class Implementation;
412 memory::StackPtr<Implementation, 280> _impl;
413 friend class DOMElement;
422bool operator==(const
DOM& lhs, const
DOM& rhs);
430bool operator!=(const
DOM& lhs, const
DOM& rhs);
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
bool findNodes(const std::string &query, DOMElementList &elements) const noexcept
bool findNode(const std::string &query, DOMElement &element_ptr) const noexcept
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)
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)
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
bool fromString(const std::string &xml) noexcept
DOMElement getRoot() const
std::string toString() const noexcept
DOM & operator=(const DOM &dom)
bool load(const std::string &file_path) noexcept
bool findNodes(const std::string &query, DOMElementList &elements) const
bool save(const std::string &file_path) const noexcept
bool findNode(const std::string &query, DOMElement &element_ptr) const
Serves as component for memory access and management.
Definition memory.h:20
Serves as component for handling XML.
Definition xml.h:20
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