Remove dynamic exceptions
[anna.git] / include / anna / io / AbstractReader.hpp
index 9f4b018..c855350 100644 (file)
@@ -32,7 +32,7 @@ public:
      Devuelve la estructura de bajo nivel con la que leemos el archivo.
      \return La estructura de bajo nivel con la que leemos el archivo.
   */
-  FILE* getFile() throw() { return a_file; }
+  FILE* getFile() { return a_file; }
 
   /**
      Devuelve \em true si el fichero indicado en el constructor puede ser tratado
@@ -40,18 +40,18 @@ public:
      \return \em true si el fichero indicado en el constructor puede ser tratado
      \em false en otro caso.
   */
-  bool isok() const throw() { return a_file != NULL; }
+  bool isok() const { return a_file != NULL; }
 
   /**
      Prepara esta instancia para trabajar con un nuevo archivo.
      \param filename Nombre del archivo con el que trabajar.
   */
-  void open(const std::string& filename) throw(anna::RuntimeException);
+  void open(const std::string& filename) noexcept(false);
 
   /**
      Libera los recursos del fichero.
   */
-  void close() throw();
+  void close() ;
 
 protected:
   FILE* a_file;
@@ -82,7 +82,7 @@ protected:
    * Verifica que el fichero fuĂ© abierto correctamente.
    * \warning Exclusivamente de uso interno.
    */
-  void verify() throw(RuntimeException);
+  void verify() noexcept(false);
 
 private:
   const std::string a_filename;