X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=source%2Fxml%2FParser.cpp;fp=source%2Fxml%2FParser.cpp;h=b2d1e5119240f7f9f593c2863b4832e08aa618d7;hp=6eed989098a7664c973570539df1eac466df6ab5;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/source/xml/Parser.cpp b/source/xml/Parser.cpp index 6eed989..b2d1e51 100644 --- a/source/xml/Parser.cpp +++ b/source/xml/Parser.cpp @@ -47,7 +47,7 @@ Parser::~Parser() { } const Node* Parser::apply(const Document& document) -throw(RuntimeException) { +noexcept(false) { LOGMETHOD(TraceMethod tf("anna::xml::Parser", "apply(Document)", ANNA_FILE_LOCATION)); Guard guard(*this); reset(); @@ -56,7 +56,7 @@ throw(RuntimeException) { } const Node* Parser::apply(const Document& document, const DTD& dtd) -throw(RuntimeException) { +noexcept(false) { LOGMETHOD(TraceMethod tf("anna::xml::Parser", "apply(Document,DTD)", ANNA_FILE_LOCATION)); Guard guard(*this); reset(); @@ -66,7 +66,7 @@ throw(RuntimeException) { } void Parser::apply(_xmlDoc* document) -throw(RuntimeException) { +noexcept(false) { LOGMETHOD(TraceMethod tf("anna::xml::Parser", "apply (_xmlDoc)", ANNA_FILE_LOCATION)); xmlNode* root; @@ -91,7 +91,7 @@ throw(RuntimeException) { } void Parser::children(Node* node, xmlNode* xmlNode) -throw(RuntimeException) { +noexcept(false) { Node* child; bool isSeparator; const char* w; @@ -133,7 +133,7 @@ throw(RuntimeException) { } void Parser::attributes(Node* node, xmlAttr* attribute) -throw(RuntimeException) { +noexcept(false) { const char* value; const Namespace* ns = NULL; @@ -147,7 +147,7 @@ throw(RuntimeException) { /* static */ void Parser::errorHandler(void *ctx, const char *msg, ...) -throw() { +{ va_list ap; va_start(ap, msg); vsprintf(st_text, msg, ap); @@ -162,7 +162,7 @@ throw() { /* static */ void Parser::warningHandler(void *ctx, const char *msg, ...) -throw() { +{ va_list ap; if(Logger::isActive(Logger::Warning)) { @@ -180,13 +180,13 @@ throw() { // La metodo que invoque a este debe hacerlo con una secci�n cr�tica activa. void Parser::reset() -throw() { +{ if(a_root != NULL) a_root->clear(); } void Parser::setupEncoding(_xmlDoc* document) -throw() { +{ if(document->encoding != NULL) { a_encoding = true; @@ -205,7 +205,7 @@ throw() { } const char* Parser::decode(const unsigned char* source) -throw() { +{ if(a_encoding == false) return (const char*) source;