lsst.pex.policy
20.0.0+f48bb53858
|
Go to the documentation of this file.
32 #ifndef LSST_PEX_POLICY_PARSERFACTORY_H
33 #define LSST_PEX_POLICY_PARSERFACTORY_H
108 #endif // LSST_PEX_POLICY_PARSERFACTORY_H
an abstract class for parsing serialized Policy data and loading it into a Policy object.
std::shared_ptr< PolicyParserFactory > Ptr
PolicyParserFactory()
create a factory
a container for holding hierarchical configuration data in memory.
virtual bool isRecognized(const std::string &leaders) const =0
analyze the given string assuming contains the leading characters from the data stream and return tru...
virtual PolicyParser * createParser(Policy &policy, bool strict=true) const =0
create a new PolicyParser class and return a pointer to it.
static const std::string UNRECOGNIZED
an empty string representing an unrecognized format
an abstract factory class for creating PolicyParser instances.
virtual ~PolicyParserFactory()
destroy this factory
virtual const std::string & getFormatName()
return the name for the format supported by the parser