Remove dynamic exceptions
[anna.git] / include / anna / xml / Parser.hpp
index 6617726..e73b2ba 100644 (file)
@@ -81,7 +81,7 @@ public:
      de los metodo #apply.
         \li El nodo devuelto  no puede ser usado despues del invocar a destructor de este Parser.
   */
-  const Node* getRoot() const throw() { return a_root; }
+  const Node* getRoot() const { return a_root; }
 
   /**
      Analiza el documento XML recibido como parametro.
@@ -92,7 +92,7 @@ public:
         \li El nodo devuelto  no puede ser usado despues del invocar a destructor de este Parser.
      \see Document::initialize
   */
-  const Node* apply(const Document& document) throw(RuntimeException);
+  const Node* apply(const Document& document) noexcept(false);
 
   /**
      Analiza el archivo XML recibido como parametro, y verifica que cumpla las reglas
@@ -108,7 +108,7 @@ public:
      \see DTD::initialize
      \see Document::initialize
   */
-  const Node* apply(const Document& document, const DTD& dtd) throw(RuntimeException);
+  const Node* apply(const Document& document, const DTD& dtd) noexcept(false);
 
 protected:
   /*
@@ -120,12 +120,12 @@ protected:
      Inicializa el contenido del nodo asociado al ultimo Parser::apply.
      \warning Se invoca automaticamente desde el numero de ANNA.xml
   */
-  virtual void reset() throw();
+  virtual void reset() ;
 
   /**
    * Comprueba si se requieren operaciones de traducción del conjunto de caracteres.
    */
-  void setupEncoding(_xmlDoc* document) throw();
+  void setupEncoding(_xmlDoc* document) ;
 
   /**
    * Si fuera necesario traduce el texto contenido por el parámetro recibido al conjunto
@@ -133,17 +133,17 @@ protected:
    * \param source Texto expresado en el conjunto de caracteres particular.
    * \return Una cadena expresada en UTF-8.
    */
-  const char* decode(const unsigned char* source) throw();
+  const char* decode(const unsigned char* source) ;
 
   /**
    * \warning Exclusivamente uso interno.
    */
-  void attributes(Node* node, _xmlAttr* attribute) throw(RuntimeException);
+  void attributes(Node* node, _xmlAttr* attribute) noexcept(false);
 
   /**
    * \warning Exclusivamente uso interno.
    */
-  void children(Node* node, _xmlNode* xmlNode) throw(RuntimeException);
+  void children(Node* node, _xmlNode* xmlNode) noexcept(false);
 
 private:
   _xmlValidCtxt* a_context;
@@ -154,10 +154,10 @@ private:
 
   Parser(const Parser&);
 
-  void apply(_xmlDoc* document) throw(RuntimeException);
+  void apply(_xmlDoc* document) noexcept(false);
 
-  static void errorHandler(void *ctx,  const char *msg, ...) throw();
-  static void warningHandler(void *ctx,  const char *msg, ...) throw();
+  static void errorHandler(void *ctx,  const char *msg, ...) ;
+  static void warningHandler(void *ctx,  const char *msg, ...) ;
 };
 
 }