X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=include%2Fanna%2Fio%2FAbstractReader.hpp;fp=include%2Fanna%2Fio%2FAbstractReader.hpp;h=c8553509d3c83b42bb67473700895efd94fec1d4;hp=9f4b0189f830c502e9a0360c0043ca94a9969e51;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/include/anna/io/AbstractReader.hpp b/include/anna/io/AbstractReader.hpp index 9f4b018..c855350 100644 --- a/include/anna/io/AbstractReader.hpp +++ b/include/anna/io/AbstractReader.hpp @@ -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;