X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=include%2Fanna%2Fdiameter.comm%2FResponse.hpp;fp=include%2Fanna%2Fdiameter.comm%2FResponse.hpp;h=a599e9ee6366138e5e9a7816f19d5c08fe3bdc65;hp=25d42c6914cb0cab21c355e9226d5d217c8ab64d;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/include/anna/diameter.comm/Response.hpp b/include/anna/diameter.comm/Response.hpp index 25d42c6..a599e9e 100644 --- a/include/anna/diameter.comm/Response.hpp +++ b/include/anna/diameter.comm/Response.hpp @@ -57,7 +57,7 @@ public: Devuelve el tipo de la clase de esta respuesta. \return El tipo de la clase de esta respuesta. */ - const ClassCode::_v & getClassCode() const throw() { return a_classCode; } + const ClassCode::_v & getClassCode() const { return a_classCode; } /** Devuelve la identificacion del mensaje diameter. @@ -65,52 +65,52 @@ public: \return Identificacion del mensaje asociado a esta peticion/respuesta. \see diameter::comm::Session::send */ - HopByHop getHopByHop() const throw() { return a_hopByHop; } + HopByHop getHopByHop() const { return a_hopByHop; } /** Devuelve la sesion que genera esta respuesta. \return La instancia de la sesion que genera esta respuesta. */ - const Session* getSession() const throw() { return a_session; } + const Session* getSession() const { return a_session; } /** Devuelve la sesion que origino la creacion de esta respuesta. \return La sesion que origino la creacion de esta respuesta. */ - Session* getSession() throw() { return a_session; } + Session* getSession() { return a_session; } /** Devuelve el resultado de la peticion diameter solicitada. \return El resultado de la peticion diameter solicitada. */ - const ResultCode::_v & getResultCode() const throw() { return a_resultCode; } + const ResultCode::_v & getResultCode() const { return a_resultCode; } /** Returns original request for the response received from the network. \see diameter::comm::Session::send */ - const Message* getRequest() const throw() { return a_request; } + const Message* getRequest() const { return a_request; } /** Returns message received from the network. \see diameter::comm::Session::send */ - const anna::DataBlock *getMessage() const throw() { return a_message; } + const anna::DataBlock *getMessage() const { return a_message; } // helpers // /** // Reponse regarding diameter keepalive // */ -// bool isKeepAlive() const throw(); +// bool isKeepAlive() const ; /** Devuelve una cadena con la informacion relevante sobre esta instancia. \return Una cadena con la informacion relevante sobre esta instancia. */ - std::string asString() const throw(); + std::string asString() const ; private: ClassCode::_v a_classCode; @@ -126,19 +126,19 @@ private: Response(); - static Response* instance(const ClassCode::_v &, const HopByHop) throw(anna::RuntimeException); - static void release(Response* response) throw(); + static Response* instance(const ClassCode::_v &, const HopByHop) noexcept(false); + static void release(Response* response) ; - void clear() throw(); + void clear() ; - void setSession(Session* session) throw() { a_session = session; } - void setRequest(const Message* request) throw() { a_request = request; } - void setMessage(const anna::DataBlock *message) throw() { a_message = message; } - void activateTimer() throw(anna::RuntimeException); - void cancelTimer() throw(); - void setResultCode(const ResultCode::_v & resultCode) throw() { a_resultCode = resultCode; } + void setSession(Session* session) { a_session = session; } + void setRequest(const Message* request) { a_request = request; } + void setMessage(const anna::DataBlock *message) { a_message = message; } + void activateTimer() noexcept(false); + void cancelTimer() ; + void setResultCode(const ResultCode::_v & resultCode) { a_resultCode = resultCode; } - static const char* asText(const ResultCode::_v) throw(); + static const char* asText(const ResultCode::_v) ; friend class Session; friend class ClientSession;