![]() |
aGrUM 3.2.0
a C++ library for (probabilistic) graphical models
|
An XML document, opaque over ticpp::Document. More...
#include <XmlDocument.h>
Classes | |
| struct | Impl |
Public Member Functions | |
| XmlDocument () | |
| XmlDocument (const std::string &filePath) | |
| ~XmlDocument () | |
| XmlDocument (XmlDocument &&) noexcept | |
| XmlDocument & | operator= (XmlDocument &&) noexcept |
| XmlDocument (const XmlDocument &)=delete | |
| XmlDocument & | operator= (const XmlDocument &)=delete |
| void | parse (const std::string &content) |
| void | loadFile () |
| Loads the file passed to the constructor. | |
| bool | noChildren () const |
| XmlElement | firstChildElement (const std::string &tag) const |
Private Attributes | |
| std::unique_ptr< Impl > | _pimpl_ |
An XML document, opaque over ticpp::Document.
Definition at line 125 of file XmlDocument.h.
| gum::XmlDocument::XmlDocument | ( | ) |
Definition at line 110 of file XmlDocument.cpp.
References _pimpl_.
Referenced by XmlDocument(), XmlDocument(), operator=(), operator=(), and parse().
|
explicit |
Definition at line 112 of file XmlDocument.cpp.
References _pimpl_.
|
default |
|
defaultnoexcept |
|
delete |
| XmlElement gum::XmlDocument::firstChildElement | ( | const std::string & | tag | ) | const |
| XmlException | if no such child exists. |
Definition at line 133 of file XmlDocument.cpp.
References gum::XmlElement::XmlElement(), gum::XmlException::XmlException(), and _pimpl_.
Referenced by operator=().
| void gum::XmlDocument::loadFile | ( | ) |
Loads the file passed to the constructor.
| XmlException | on failure. |
Definition at line 125 of file XmlDocument.cpp.
References gum::XmlException::XmlException(), and _pimpl_.
Referenced by operator=().
| bool gum::XmlDocument::noChildren | ( | ) | const |
Definition at line 131 of file XmlDocument.cpp.
References _pimpl_.
Referenced by operator=().
|
delete |
References XmlDocument(), firstChildElement(), loadFile(), noChildren(), and parse().
|
defaultnoexcept |
| void gum::XmlDocument::parse | ( | const std::string & | content | ) |
| XmlException | on a parse error. |
Definition at line 119 of file XmlDocument.cpp.
References XmlDocument(), gum::XmlException::XmlException(), _pimpl_, and parse().
Referenced by operator=(), and parse().
|
private |
Definition at line 149 of file XmlDocument.h.
Referenced by XmlDocument(), XmlDocument(), firstChildElement(), loadFile(), noChildren(), and parse().