Remove dynamic exceptions
[anna.git] / example / timex / ArithmeticHTTPServer / Transaction.hpp
1 // ANNA - Anna is Not Nothingness Anymore                                                         //
2 //                                                                                                //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo                         //
4 //                                                                                                //
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 //
7
8
9 #ifndef timex_ArithmeticHTTPServer_Transaction_hpp
10 #define timex_ArithmeticHTTPServer_Transaction_hpp
11
12 #include <anna/timex/Transaction.hpp>
13
14 namespace anna {
15    namespace comm {
16       class ClientSocket;
17    }
18    namespace http {
19       class Response;
20    }
21 }
22
23 namespace test {
24
25 namespace http4comm {
26
27 using namespace anna;
28
29 class Transaction : public anna::timex::Transaction {
30 public:
31    Transaction ();
32
33    comm::ClientSocket* getClientSocket () { return a_clientSocket; } 
34
35    void setClientSocket (comm::ClientSocket* clientSocket) { a_clientSocket = clientSocket; }
36
37 private:
38    comm::ClientSocket* a_clientSocket;
39    http::Response* a_httpResponse;
40    
41    void expire (anna::timex::Engine*) noexcept(false);
42 };
43
44 }
45 }
46
47 #endif