2 #include <fipa_acl/message_parser/envelope_parser.h>
3 #include <fipa_acl/message_generator/envelope_generator.h>
9 : representation(fipa::acl::representation::
UNKNOWN)
10 , timestamp(base::Time::now())
16 : representation(_representation)
17 , timestamp(base::Time::now())
35 throw std::runtime_error(
"SerializedLetter: could not deserialize data correctly");
40 for(
unsigned int i=0; i<msg.size(); i++)
42 this->
data.push_back(msg[i]);
49 for (std::vector<uint8_t>::const_iterator it =
data.begin(); it !=
data.end(); it++)
static std::string create(const ACLEnvelope &msg, const representation::Type &acl_representation)
ACLMessage envelope (also typed as fipa::acl::Letter) includes the base envelope and updated fields...
fipa::acl::Letter deserialize() const
static bool parseData(const std::string &storage, ACLEnvelope &envelope, representation::Type type=fipa::acl::representation::BITEFFICIENT)
fipa::acl::representation::Type representation
std::vector< uint8_t > data
void setData(const std::string &msg)
std::string getDataAsString() const