39 using boost::regex_search;
63 return new PAFParser(policy, strict);
78 return (regex_search(leaders, contentid) ||
an abstract class for parsing serialized Policy data and loading it into a Policy object...
virtual bool isRecognized(const std::string &leaders) const
analyze the given string assuming contains the leading characters from the data stream and return tru...
definition of the PAFParser class
static const boost::regex LEADER_PATTERN
a pattern for the leading data characters for this format
a container for holding hierarchical configuration data in memory.
virtual const std::string & getFormatName()
return the name for the format supported by the parser
definition of the PAFParserFactory class
static const boost::regex CONTENTID
a default pattern for the content identifier.
virtual PolicyParser * createParser(Policy &policy, bool strict=true) const
create a new PolicyParser class and return a pointer to it.
static const std::string FORMAT_NAME
a name for the format