lsst.pex.policy  13.0-1-g47a359c+10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
lsst::pex::policy::paf::PAFParser Class Reference

a parser for reading PAF-formatted data into a Policy object More...

#include <PAFParser.h>

Inheritance diagram for lsst::pex::policy::paf::PAFParser:
lsst::pex::policy::PolicyParser

Public Member Functions

 PAFParser (Policy &policy)
 create a parser to load a Policy More...
 
 PAFParser (Policy &policy, bool strict)
 create a parser to load a Policy More...
 
virtual ~PAFParser ()
 delete this parser More...
 
virtual int parse (std::istream &is)
 parse the data found on the given stream More...
 
- Public Member Functions inherited from lsst::pex::policy::PolicyParser
 PolicyParser (Policy &policy, bool strict=true)
 Create a Parser attached to a policy object to be loaded. More...
 
virtual ~PolicyParser ()
 destroy this factory More...
 
bool isStrict ()
 return true if this parser will be strict in adhering to syntax rules. More...
 
void setStrict (bool strict)
 set whether this parser will be strict in adhering to syntax rules. More...
 
PolicygetPolicy ()
 return the policy object More...
 
const PolicygetPolicy () const
 return the policy object More...
 

Additional Inherited Members

- Protected Attributes inherited from lsst::pex::policy::PolicyParser
Policy_pol
 
bool _strict
 

Detailed Description

a parser for reading PAF-formatted data into a Policy object

Definition at line 54 of file PAFParser.h.

Constructor & Destructor Documentation

lsst::pex::policy::paf::PAFParser::PAFParser ( Policy policy)

create a parser to load a Policy

Parameters
policythe Policy object to load the parsed data into
lsst::pex::policy::paf::PAFParser::PAFParser ( Policy policy,
bool  strict 
)

create a parser to load a Policy

Parameters
policythe Policy object to load the parsed data into
strictif true, 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.
virtual lsst::pex::policy::paf::PAFParser::~PAFParser ( )
virtual

delete this parser

Member Function Documentation

virtual int lsst::pex::policy::paf::PAFParser::parse ( std::istream &  is)
virtual

parse the data found on the given stream

Parameters
isthe stream to read PAF-encoded data from
Returns
int the number of parameters values loaded. This does not include sub-Policy objects.

Implements lsst::pex::policy::PolicyParser.


The documentation for this class was generated from the following file: