1 #ifndef FIPA_ACL_ENVELOPE_PARSER_H
2 #define FIPA_ACL_ENVELOPE_PARSER_H
4 #include <fipa_acl/message_generator/acl_envelope.h>
5 #include <fipa_acl/message_generator/types.h>
8 #include <boost/shared_ptr.hpp>
18 virtual bool parseData(
const std::string& storage,
ACLEnvelope& envelope) {
throw std::runtime_error(
"Parser not implemented"); }
30 static std::map<fipa::acl::representation::Type, fipa::acl::EnvelopeParserImplementationPtr> msParsers;
37 #endif // FIPA_ACL_ENVELOPE_PARSER_H
virtual bool parseData(const std::string &storage, ACLEnvelope &envelope)
ACLMessage envelope (also typed as fipa::acl::Letter) includes the base envelope and updated fields...
static bool parseData(const std::string &storage, ACLEnvelope &envelope, representation::Type type=fipa::acl::representation::BITEFFICIENT)
boost::shared_ptr< EnvelopeParserImplementation > EnvelopeParserImplementationPtr
virtual ~EnvelopeParserImplementation()