32 #ifndef LSST_PEX_POLICY_PARSER_H
33 #define LSST_PEX_POLICY_PARSER_H
35 #include "lsst/daf/base/Citizen.h"
59 : lsst::daf::base::Citizen(typeid(this)),
_pol(policy),
_strict(strict) { }
87 virtual int parse(std::istream& is) = 0;
105 #endif // LSST_PEX_POLICY_PARSER_H
an abstract class for parsing serialized Policy data and loading it into a Policy object...
const Policy & getPolicy() const
return the policy object
a definition of the PolicyParserFactory class
a container for holding hierarchical configuration data in memory.
PolicyParser(Policy &policy, bool strict=true)
Create a Parser attached to a policy object to be loaded.
bool isStrict()
return true if this parser will be strict in adhering to syntax rules.
virtual int parse(std::istream &is)=0
parse data from the input stream and load results into the attached Policy.
void setStrict(bool strict)
set whether this parser will be strict in adhering to syntax rules.
virtual ~PolicyParser()
destroy this factory
Policy & getPolicy()
return the policy object