5 #include <boost/assign/list_of.hpp> 11 std::map<representation::Type, MessageParserImplementationPtr > MessageParser::msParsers = boost::assign::map_list_of
13 (
representation::XML, boost::shared_ptr<MessageParserImplementation>(
new XMLMessageParser()))
22 return messageParser->parseData(storage, msg);
24 std::string msg =
"MessageParser: there is no parser registered for " +
representation::TypeTxt[representation];
25 throw std::runtime_error(msg);
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 f...
boost::shared_ptr< MessageParserImplementation > MessageParserImplementationPtr
rebuilds an ACLMessage from a parsed bit-efficient encoded received message
const std::string TypeTxt[]
This class provides a representation of a message conforming to the FIPA specification SC00061...
Foundation of Physical Intelligent Agents.