X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=include%2Fanna%2Fxml%2FDocumentFile.hpp;fp=include%2Fanna%2Fxml%2FDocumentFile.hpp;h=5655352b339a879e6b20bc0251b9956857835001;hp=3a1c71fe640cdcc6846d8eb026eb4f5c6def548a;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/include/anna/xml/DocumentFile.hpp b/include/anna/xml/DocumentFile.hpp index 3a1c71f..5655352 100644 --- a/include/anna/xml/DocumentFile.hpp +++ b/include/anna/xml/DocumentFile.hpp @@ -32,20 +32,20 @@ public: * * @return XML document root node */ - const Node * getRootNode() const throw() { return a_rootNode; } + const Node * getRootNode() const { return a_rootNode; } /** Devuelve el contenido asociado al documento XML. \return El contenido asociado al documento XML. */ - const anna::DataBlock& getContent() const throw(RuntimeException); + const anna::DataBlock& getContent() const noexcept(false); /** * Parse xml document and return root node * \return Root node * \warning Need previous initialization */ - const Node* parse() throw(RuntimeException) { return (a_rootNode = Document::parse()); } + const Node* parse() noexcept(false) { return (a_rootNode = Document::parse()); } /** * Parse xml document with dtd and return root node @@ -53,14 +53,14 @@ public: * \return Root node * \warning Need previous initialization */ - const Node* parse(const DTD& dtd) throw(RuntimeException) { return (a_rootNode = Document::parse(dtd)); } + const Node* parse(const DTD& dtd) noexcept(false) { return (a_rootNode = Document::parse(dtd)); } /** * XML representation from loaded document * \return XML string * \warning Need previous initialization and parsing */ - std::string asXmlString() const throw() { Compiler c; return (c.apply(a_rootNode)); } + std::string asXmlString() const { Compiler c; return (c.apply(a_rootNode)); } protected: @@ -71,8 +71,8 @@ protected: private: const anna::xml::Node * a_rootNode; - virtual _xmlDoc* do_initialize(const char* filename) throw(RuntimeException); - virtual _xmlDoc* do_initialize(const anna::DataBlock&) throw(RuntimeException); + virtual _xmlDoc* do_initialize(const char* filename) noexcept(false); + virtual _xmlDoc* do_initialize(const anna::DataBlock&) noexcept(false); }; }