|
minimc 0.5.1
|
Validates document with Xerces-C++. Loads document with pugixml. More...
#include <XMLDocument.hpp>
Public Member Functions | |
| XMLDocument (const std::filesystem::path &xml_filepath) | |
| Loads a valid pugixml XML document. More... | |
Public Attributes | |
| const pugi::xml_node | root {doc.child("minimc")} |
| Allows access to the root node of XMLDocument::doc. More... | |
Validates document with Xerces-C++. Loads document with pugixml.
| XMLDocument::XMLDocument | ( | const std::filesystem::path & | xml_filepath | ) |
Loads a valid pugixml XML document.
| std::runtime_error | Validation or DOM loading failed. Gives file location and message information if validation failed. |
| const pugi::xml_node XMLDocument::root {doc.child("minimc")} |
Allows access to the root node of XMLDocument::doc.
pugi::xml_node objects are only pointers to the full document. Therefore calling code must not let the owning XMLDocument to go out of scope. This member is declared after XMLDocument::doc to guarantee construction order.