fipa_acl  1.4
Static Public Member Functions | List of all members
fipa::acl::EnvelopeParser Class Reference

#include <envelope_parser.h>

Static Public Member Functions

static bool parseData (const std::string &storage, ACLEnvelope &envelope, representation::Type type=fipa::acl::representation::BITEFFICIENT)
 

Detailed Description

Definition at line 23 of file envelope_parser.h.

Member Function Documentation

◆ parseData()

bool fipa::acl::EnvelopeParser::parseData ( const std::string &  storage,
ACLEnvelope envelope,
representation::Type  type = fipa::acl::representation::BITEFFICIENT 
)
static

Definition at line 15 of file envelope_parser.cpp.

16 {
17  EnvelopeParserImplementationPtr messageParser = msParsers[type];
18  if(messageParser)
19  {
20  return messageParser->parseData(storage, envelope);
21  } else {
22  std::string msg = "EnvelopeParser: there is no parser registered for " + representation::TypeTxt[type];
23  throw std::runtime_error(msg);
24  }
25 }
boost::shared_ptr< EnvelopeParserImplementation > EnvelopeParserImplementationPtr
const std::string TypeTxt[]
Definition: types.h:28

The documentation for this class was generated from the following files: