fipa_acl  1.4
bitefficient_envelope_parser.cpp
Go to the documentation of this file.
3 
4 namespace fipa {
5 namespace acl {
6 
7 bool BitefficientEnvelopeParser::parseData(const std::string& storage, ACLEnvelope& envelope)
8 {
9  typedef fipa::acl::bitefficient::Envelope<std::string::const_iterator> bitefficient_envelope_grammar;
10  bitefficient_envelope_grammar grammar;
11 
12  std::string::const_iterator iter = storage.begin();
13  std::string::const_iterator end = storage.end();
14  bool r = parse(iter, end, grammar, envelope);
15 
16  if(r && iter == end)
17  {
18  return true;
19  }
20  return false;
21 }
22 
23 } // end namespace acl
24 } // end namespace fipa
ACLMessage envelope (also typed as fipa::acl::Letter) includes the base envelope and updated fields...
Definition: acl_envelope.h:349
bool parseData(const std::string &storage, ACLEnvelope &envelope)
Foundation of Physical Intelligent Agents.
Definition: conversation.cpp:6