hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ReducingBaseMessage.hpp
Go to the documentation of this file.
1 
15 #ifndef REDUCINGBASEMESSAGE_HPP_
16 #define REDUCINGBASEMESSAGE_HPP_
17 
18 #include <string>
19 #include "MessageType.hpp"
20 
21 namespace HCE{
22 namespace reduce_types{
23 
24 const int FAKE_MSG_TYPE = -1;
25 const int FAKE_TTL = -1;
27 
28 
30 public:
31  ReducingBaseMessage(const types::MessageType processingType, const int ttl,
32  const std::string& body);
33  virtual ~ReducingBaseMessage();
34 
36  int getTTL() const;
37  std::string getBody() const;
38 
39 private:
40  types::MessageType _processingType;
41  int _ttl;
42  std::string _body;
43 
45 };
46 
47 
48 }
49 }
50 
51 #endif