fipa_acl  1.4
string_message_parser.cpp
Go to the documentation of this file.
2 
4 #include <base-logging/Logging.hpp>
5 
6 namespace fipa {
7 namespace acl {
8 
9 bool StringMessageParser::parseData(const std::string& storage, ACLMessage& msg)
10 {
12  string_message_grammar grammar;
13 
14  std::string::const_iterator iter = storage.begin();
15  std::string::const_iterator end = storage.end();
16  return phrase_parse(iter, end, grammar, qi::space, msg);
17 }
18 
19 } // end namespace acl
20 } // end namespace fipa