#include <PAFParserFactory.h>
a class for creating PAFParser objects
Definition at line 53 of file PAFParserFactory.h.
lsst::pex::policy::paf::PAFParserFactory::PAFParserFactory |
( |
const boost::regex & |
contIdPatt = CONTENTID | ) |
|
|
inline |
create a new factory
- Parameters
-
contIdPatt | the pattern to use for recognizing a content identifier. A content ID is encoded in a (#-leading) comment as the first line of the file. The default is "<?cfg JSON ... ?>" |
Definition at line 63 of file PAFParserFactory.h.
virtual PolicyParser* lsst::pex::policy::paf::PAFParserFactory::createParser |
( |
Policy & |
policy, |
|
|
bool |
strict = true |
|
) |
| const |
|
virtual |
create a new PolicyParser class and return a pointer to it. The caller is responsible for destroying the pointer.
- Parameters
-
policy | the Policy object that data should be loaded into. |
strict | if true (default), make the returned PolicyParser be strict in reporting errors in file contents and syntax. If false, errors will be ignored if possible; often, such errors will result in some data not getting loaded. The default (set by PolicyParser) is true. |
Implements lsst::pex::policy::PolicyParserFactory.
virtual const std::string& lsst::pex::policy::paf::PAFParserFactory::getFormatName |
( |
| ) |
|
|
virtual |
virtual bool lsst::pex::policy::paf::PAFParserFactory::isRecognized |
( |
const std::string & |
leaders | ) |
const |
|
virtual |
analyze the given string assuming contains the leading characters from the data stream and return true if it is recognized as being in the format supported by this parser. If it is, return the name of the this format;
Implements lsst::pex::policy::PolicyParserFactory.
const boost::regex lsst::pex::policy::paf::PAFParserFactory::CONTENTID |
|
static |
a default pattern for the content identifier. The content ID is encoded in a (#-leading) comment as the first line of the file. This default is "<?cfg PAF ... ?>"
Definition at line 108 of file PAFParserFactory.h.
boost::regex lsst::pex::policy::paf::PAFParserFactory::contentid |
|
private |
const std::string lsst::pex::policy::paf::PAFParserFactory::FORMAT_NAME |
|
static |
const boost::regex lsst::pex::policy::paf::PAFParserFactory::LEADER_PATTERN |
|
static |
a pattern for the leading data characters for this format
Definition at line 101 of file PAFParserFactory.h.
The documentation for this class was generated from the following file:
- /home/lsstsw/stack/Linux64/pex_policy/11.0+1/include/lsst/pex/policy/paf/PAFParserFactory.h