1 // ANNA - Anna is Not Nothingness Anymore //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
9 #ifndef timex_ArithmeticHTTPServer_Context_hpp
10 #define timex_ArithmeticHTTPServer_Context_hpp
12 #include <anna/timex/Context.hpp>
28 class Context : public anna::timex::Context <S64> {
30 Context (anna::timex::Engine&, const Millisecond& timeout);
32 void create (const S64 id, comm::ClientSocket&) throw (RuntimeException);
33 void destroy (Transaction*) throw ();
36 Recycler <Transaction> a_transactions;
38 anna::timex::Transaction* createTransaction (const int /*classType*/) throw ();
39 void releaseTransaction (anna::timex::Transaction* tt) throw ();
41 std::string identifierAsString (const S64&) const throw ();
42 const S64& contextAsIdentifier (const void*) const throw ();
44 Context (const Context&);