Changed LICENSE. Now referenced to web site and file on project root directory
[anna.git] / example / timex / ArithmeticHTTPServer / Request.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_Request_hpp
10 #define timex_ArithmeticHTTPServer_Request_hpp
11
12 #include <anna/comm/Codec.hpp>
13
14 namespace test {
15
16 namespace http4comm {
17
18 /*
19  * comm::Codec reconocido por el servidor aritmético.
20  */
21 class Request : public anna::comm::Codec {
22 public:
23    static const int Id = 1;
24    int x;
25    int y;
26    int op;
27    anna::S64 initTime;
28
29    Request () : anna::comm::Codec (Id, false) {
30       attach ("X", x);
31       attach ("Y", y);
32       attach ("OP", op);
33       attach ("InitTime", initTime);
34    }
35 };
36
37 }
38 }
39
40 #endif