35 #ifndef LSST_PEX_POLICY_PAF_PAFPARSERFACTORY_H 36 #define LSST_PEX_POLICY_PAF_PAFPARSERFACTORY_H 39 #include <boost/regex.hpp> 78 bool strict=
true)
const;
86 virtual bool isRecognized(
const std::string& leaders)
const;
111 boost::regex contentid;
116 #endif // LSST_PEX_POLICY_PAF_PAFPARSERFACTORY_H an abstract class for parsing serialized Policy data and loading it into a Policy object...
virtual PolicyParser * createParser(Policy &policy, bool strict=true) const
create a new PolicyParser class and return a pointer to it.
static const boost::regex LEADER_PATTERN
a pattern for the leading data characters for this format
a class for creating PAFParser objects
a definition of the PolicyParserFactory class
a container for holding hierarchical configuration data in memory.
virtual const std::string & getFormatName()
return the name for the format supported by the parser
an abstract factory class for creating PolicyParser instances.
virtual bool isRecognized(const std::string &leaders) const
analyze the given string assuming contains the leading characters from the data stream and return tru...
PAFParserFactory(const boost::regex &contIdPatt=CONTENTID)
create a new factory
static const boost::regex CONTENTID
a default pattern for the content identifier.
static const std::string FORMAT_NAME
a name for the format