-// ANNA - Anna is Not 'N' Anymore
-//
-// (c) Copyright 2005-2014 Eduardo Ramos Testillano & Francisco Ruiz Rayo
-//
-// https://bitbucket.org/testillano/anna
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Authors: eduardo.ramos.testillano@gmail.com
-// cisco.tierra@gmail.com
+// ANNA - Anna is Not Nothingness Anymore //
+// //
+// (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo //
+// //
+// See project site at http://redmine.teslayout.com/projects/anna-suite //
+// See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
#ifndef anna_http_Header_hpp
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>;