struct Type { enum _v { ResponseExpiration, SessionUnbind, SessionRecover, LocalServerAttach }; };
// getters for responses
- Response* getResponse() throw() { return reinterpret_cast <Response*>(getContext()); }
- const Response* getResponse() const throw() { return reinterpret_cast <const Response*>(getContext()); }
+ Response* getResponse() { return reinterpret_cast <Response*>(getContext()); }
+ const Response* getResponse() const { return reinterpret_cast <const Response*>(getContext()); }
// getters for session (client-session at the moment)
- Session* getSession() throw() { return reinterpret_cast <Session*>(getContext()); }
- const Session* getSession() const throw() { return reinterpret_cast <const Session*>(getContext()); }
+ Session* getSession() { return reinterpret_cast <Session*>(getContext()); }
+ const Session* getSession() const { return reinterpret_cast <const Session*>(getContext()); }
// getters for local server
- LocalServer* getLocalServer() throw() { return reinterpret_cast <LocalServer*>(getContext()); }
- const LocalServer* getLocalServer() const throw() { return reinterpret_cast <const LocalServer*>(getContext()); }
+ LocalServer* getLocalServer() { return reinterpret_cast <LocalServer*>(getContext()); }
+ const LocalServer* getLocalServer() const { return reinterpret_cast <const LocalServer*>(getContext()); }
- std::string asString() const throw();
+ std::string asString() const ;
private:
Timer() {;}
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;