|
fipa_acl
1.4
|
Allows to parse a bytestream that conforms to the bitefficient representation of FIPA messages to a ACLMessage. More...
#include <message_parser.h>
Static Public Member Functions | |
| static bool | parseData (const std::string &storage, ACLMessage &msg, fipa::acl::representation::Type representation=fipa::acl::representation::BITEFFICIENT) |
| parses a correctly encoded message according to grammar_bitefficient.h and creates a Message object for internal use More... | |
Allows to parse a bytestream that conforms to the bitefficient representation of FIPA messages to a ACLMessage.
Given a bytestream that conforms to the FIPA Standard for the bitefficient representation of messages, this class can be used to parse this stream into a ACLMessage. The parsing makes extensive use of the boost::spirit library, a library whose contribution we want to acknowledge here. The Spirit library has been used to define the grammar and the underlying parser, i.e. the core of this library.
Definition at line 28 of file message_parser.h.
|
static |
parses a correctly encoded message according to grammar_bitefficient.h and creates a Message object for internal use
| storage | Array of bytes that represent the bitefficient FIPA encoded message |
| msg | The message extracted from the data |
| representation | the representation to decode the incoming message |
Definition at line 17 of file message_parser.cpp.
1.8.11