#include <serialized_letter.h>
Facilitate transport
Definition at line 16 of file serialized_letter.h.
| fipa::SerializedLetter::SerializedLetter |
( |
| ) |
|
Definition at line 15 of file serialized_letter.cpp.
static std::string create(const ACLEnvelope &msg, const representation::Type &acl_representation)
fipa::acl::representation::Type representation
void setData(const std::string &msg)
| void fipa::SerializedLetter::clear |
( |
| ) |
|
|
inline |
Clear the serialization data
Definition at line 27 of file serialized_letter.h.
fipa::acl::representation::Type representation
std::vector< uint8_t > data
Retrieve decoded letter
Definition at line 24 of file serialized_letter.cpp.
35 throw std::runtime_error(
"SerializedLetter: could not deserialize data correctly");
ACLMessage envelope (also typed as fipa::acl::Letter) includes the base envelope and updated fields...
static bool parseData(const std::string &storage, ACLEnvelope &envelope, representation::Type type=fipa::acl::representation::BITEFFICIENT)
fipa::acl::representation::Type representation
std::string getDataAsString() const
| std::string fipa::SerializedLetter::getDataAsString |
( |
| ) |
const |
Get data in string container
Definition at line 46 of file serialized_letter.cpp.
49 for (std::vector<uint8_t>::const_iterator it =
data.begin(); it !=
data.end(); it++)
std::vector< uint8_t > data
| std::vector<uint8_t> fipa::SerializedLetter::getVector |
( |
| ) |
const |
|
inline |
Retrieve the underlying vector
Definition at line 32 of file serialized_letter.h.
32 {
return this->
data; }
std::vector< uint8_t > data
| void fipa::SerializedLetter::setData |
( |
const std::string & |
msg | ) |
|
Set the serialized content
Definition at line 38 of file serialized_letter.cpp.
40 for(
unsigned int i=0; i<msg.size(); i++)
42 this->
data.push_back(msg[i]);
std::vector< uint8_t > data
| int fipa::SerializedLetter::size |
( |
| ) |
const |
|
inline |
Retrieve the size of the serialized content
Definition at line 42 of file serialized_letter.h.
42 {
return this->
data.size(); }
std::vector< uint8_t > data
| std::vector<uint8_t> fipa::SerializedLetter::data |
| base::Time fipa::SerializedLetter::timestamp |
The documentation for this struct was generated from the following files: