fipa_acl  1.4
serialized_letter.h
Go to the documentation of this file.
1 #ifndef FIPA_ACL_SERIALIZED_LETTER_H
2 #define FIPA_ACL_SERIALIZED_LETTER_H
3 
4 #include <stdint.h>
5 
6 #include <string>
7 #include <vector>
8 #include <base/Time.hpp>
9 #include <fipa_acl/fipa_acl.h>
10 
11 namespace fipa {
12 
17 {
19 
23 
27  inline void clear() { representation = fipa::acl::representation::UNKNOWN; data.clear(); }
28 
32  inline std::vector<uint8_t> getVector() const { return this->data; }
33 
37  void setData(const std::string& msg);
38 
42  inline int size() const { return this->data.size(); }
43 
47  std::string getDataAsString() const;
48 
53 
55  std::vector<uint8_t> data;
56  base::Time timestamp;
57 };
58 
59 } // namespace fipa
60 #endif
61 
ACLMessage envelope (also typed as fipa::acl::Letter) includes the base envelope and updated fields...
Definition: acl_envelope.h:349
fipa::acl::Letter deserialize() const
std::vector< uint8_t > getVector() const
std::string getDataAsString() const
fipa::acl::representation::Type representation
std::vector< uint8_t > data
void setData(const std::string &msg)
Foundation of Physical Intelligent Agents.
Definition: conversation.cpp:6