*
* @return XML document root node
*/
- const Node * getRootNode() const throw() { return a_rootNode; }
+ const Node * getRootNode() const { return a_rootNode; }
/**
* 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
* \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)); }
private:
const anna::xml::Node * a_rootNode;
- virtual _xmlDoc* do_initialize(const char* content) throw(RuntimeException);
- virtual _xmlDoc* do_initialize(const anna::DataBlock&) throw(RuntimeException);
+ virtual _xmlDoc* do_initialize(const char* content) noexcept(false);
+ virtual _xmlDoc* do_initialize(const anna::DataBlock&) noexcept(false);
};
}