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
\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
\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;
}
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
\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
\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;
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<Header>;