2 #include <fipa_acl/message_parser/envelope_parser.h> 3 #include <fipa_acl/message_generator/envelope_generator.h> 10 , 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)
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.