ANNA Suite  2020b
Multipurpose development suite for Telco applications
Request.hpp
Go to the documentation of this file.
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 anna_test_Request_hpp
10 #define anna_test_Request_hpp
11 
12 #include <anna/comm/Codec.hpp>
14 
15 namespace test {
16 
17 class Request : public anna::comm::Codec {
18 public:
19  static const int Id = 1;
20  int x;
21  int y;
22  int op;
24 
25  Request () : anna::comm::Codec (Id, false) {
26  attach ("X", x);
27  attach ("Y", y);
28  attach ("OP", op);
29  attach ("InitTime", initTime);
30  }
31 };
32 
33 }
34 
35 #endif
36 
Definition: Millisecond.hpp:24
int y
Definition: Request.hpp:21
Definition: Communicator.hpp:14
int op
Definition: Request.hpp:22
static const int Id
Definition: Request.hpp:19
Codec(const Type type, const bool scramble=true)
Definition: Codec.hpp:93
const Variable * attach(const char *name, std::string &value) noexcept(false)
Definition: Codec.hpp:106
Request()
Definition: Request.hpp:25
int x
Definition: Request.hpp:20
Definition: app.hpp:12
Definition: Request.hpp:17
Millisecond initTime
Definition: Request.hpp:23
Definition: Codec.hpp:82