X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=include%2Fanna%2Fhttp%2FHeader.hpp;fp=include%2Fanna%2Fhttp%2FHeader.hpp;h=c9a66dc06a7d92f27c7285620e742e346ab5d63b;hp=50786ec9b1b365d614203e692df8cdfbfca36842;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/include/anna/http/Header.hpp b/include/anna/http/Header.hpp index 50786ec..c9a66dc 100644 --- a/include/anna/http/Header.hpp +++ b/include/anna/http/Header.hpp @@ -70,57 +70,57 @@ public: Devuelve el tipo de la cabecera. \return el tipo de la cabecera. */ - Type::_v getType() const throw() { return a_type; } + Type::_v getType() const { return a_type; } /** Devuelve la categoria de la cabecera. \return la categoria de la cabecera. */ - Category::_v getCategory() const throw() { return a_category; } + Category::_v getCategory() const { return a_category; } /** Devuelve el puntero nombre de la extension, puede ser NULL. \return el puntero nombre de la extension, puede ser NULL. */ - const std::string* getExtensionName() const throw() { return a_extensionName; } + const std::string* getExtensionName() const { return a_extensionName; } /** Devuelve el valor asociado a esta cabecera. \return el valor asociado a esta cabecera. */ - const std::string& getStringValue() const throw() { return a_value; } + const std::string& getStringValue() const { return a_value; } /** Devuelve el valor numerico asociado a esta cabecera. \return el valor numerico asociado a esta cabecera. */ - const int getIntegerValue() const throw(); + const int getIntegerValue() const ; /** Establece el valor de esta cabecera. \param token Token del que obtendremos el valor. \warning Exclusivamente uso interno. */ - void setValue(const Token* token) throw(); + void setValue(const Token* token) ; /** Establece el valor asociado a esta cabecera. \param value Valor a establecer. */ - void setValue(const std::string& value) throw() { a_value = value; } + void setValue(const std::string& value) { a_value = value; } /** Establece el valor asociado a esta cabecera. \param value Valor a establecer. */ - void setValue(const int value) throw(); + void setValue(const int value) ; /** Operador de copia. \param other Cabecera de la que copiar. \return La instancia de si misma. */ - Header& operator = (const Header& other) throw(); + Header& operator = (const Header& other) ; /** Compara el contenido actual de esta cabecera con el literal recibido como parametro y @@ -133,7 +133,7 @@ public: \return Un entero menor, igual o mayor que cero si se encuentra que el contenido es, respectivamente, menor que, igual a (concordante), o mayor que \em str. */ - int compare(const char* str, const int flags = Compare::LeftTrim | Compare::NoCase) const throw(); + int compare(const char* str, const int flags = Compare::LeftTrim | Compare::NoCase) const ; /** Compara el contenido actual de esta cabecera con el literal recibido como parametro y @@ -144,7 +144,7 @@ public: \return \em true o \em false dependiendo de si el contenido coincide con \em str. */ - bool match(const char* str, const int flags = Compare::LeftTrim | Compare::NoCase) const throw() { + bool match(const char* str, const int flags = Compare::LeftTrim | Compare::NoCase) const { return compare(str, flags) == 0; } @@ -152,7 +152,7 @@ public: Devuelve una cadena con toda la informacion relevante de este objeto. \return una cadena con toda la informacion relevante de este objeto. */ - std::string asString() const throw(); + std::string asString() const ; /** Interpreta el token recibido como parametro y devuelve el valor de Type con el @@ -161,7 +161,7 @@ public: \warning Exclusivamente uso interno. \return El tipo de cabecera. */ - static Type::_v asType(const Token* token) throw(); + static Type::_v asType(const Token* token) ; /** Interpreta el token recibido como parametro y devuelve el nombre de la cabecera @@ -170,7 +170,7 @@ public: \warning Exclusivamente uso interno. \return El literal con el nombre de la cabecera correspondiente al tipo recibido. */ - static const char* asLiteral(const Type::_v type) throw(); + static const char* asLiteral(const Type::_v type) ; private: Type::_v a_type; @@ -180,9 +180,9 @@ private: static const char* st_names [Type::End]; Header() : a_extensionName(NULL), a_category(Category::Extension) {;} - Header* initialize(const Type::_v type) throw(RuntimeException); - Header* initialize(const std::string& name) throw(RuntimeException); - std::string code() const throw(); + Header* initialize(const Type::_v type) noexcept(false); + Header* initialize(const std::string& name) noexcept(false); + std::string code() const ; friend class Message; friend class Allocator
;