X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=include%2Fanna%2Fdiameter.comm%2FTimer.hpp;fp=include%2Fanna%2Fdiameter.comm%2FTimer.hpp;h=7857a5180565586faa0df50e2fcbfdbebd543b8e;hp=c0b7b249ea5912cbddc282ebd3317475a9bbf321;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/include/anna/diameter.comm/Timer.hpp b/include/anna/diameter.comm/Timer.hpp index c0b7b24..7857a51 100644 --- a/include/anna/diameter.comm/Timer.hpp +++ b/include/anna/diameter.comm/Timer.hpp @@ -33,18 +33,18 @@ public: struct Type { enum _v { ResponseExpiration, SessionUnbind, SessionRecover, LocalServerAttach }; }; // getters for responses - Response* getResponse() throw() { return reinterpret_cast (getContext()); } - const Response* getResponse() const throw() { return reinterpret_cast (getContext()); } + Response* getResponse() { return reinterpret_cast (getContext()); } + const Response* getResponse() const { return reinterpret_cast (getContext()); } // getters for session (client-session at the moment) - Session* getSession() throw() { return reinterpret_cast (getContext()); } - const Session* getSession() const throw() { return reinterpret_cast (getContext()); } + Session* getSession() { return reinterpret_cast (getContext()); } + const Session* getSession() const { return reinterpret_cast (getContext()); } // getters for local server - LocalServer* getLocalServer() throw() { return reinterpret_cast (getContext()); } - const LocalServer* getLocalServer() const throw() { return reinterpret_cast (getContext()); } + LocalServer* getLocalServer() { return reinterpret_cast (getContext()); } + const LocalServer* getLocalServer() const { return reinterpret_cast (getContext()); } - std::string asString() const throw(); + std::string asString() const ; private: Timer() {;} @@ -52,11 +52,11 @@ private: Type::_v a_type; - void expire(anna::timex::Engine*) throw(anna::RuntimeException); + void expire(anna::timex::Engine*) noexcept(false); - Type::_v getType() const throw() { return a_type; } - void setType(const Type::_v type) throw() { a_type = type; } - static const char* asText(const Type::_v) throw(); + Type::_v getType() const { return a_type; } + void setType(const Type::_v type) { a_type = type; } + static const char* asText(const Type::_v) ; friend class TimerManager;