36 #ifndef LSST_PEX_POLICY_FILE_H 37 #define LSST_PEX_POLICY_FILE_H 40 #include <boost/regex.hpp> 41 #include <boost/filesystem/path.hpp> 42 #include <boost/filesystem/operations.hpp> 80 explicit PolicyFile(
const boost::filesystem::path& filepath,
97 PolicyFile(
const boost::filesystem::path& filepath,
122 const boost::filesystem::path& reposDir,
124 PolicyFile(
const boost::filesystem::path& filepath,
125 const boost::filesystem::path& reposDir,
146 const boost::filesystem::path& reposDir,
148 PolicyFile(
const boost::filesystem::path& filepath,
149 const boost::filesystem::path& reposDir,
243 #endif // LSST_PEX_POLICY_FILE_H const std::string & getFormatName() const
definition of the PolicySource class
static const boost::regex SPACE_RE
the XML file extension, ".xml"
Interface for Persistable base class.
virtual void load(Policy &policy)
load the data from this Policy source into a Policy object
a container for holding hierarchical configuration data in memory.
const std::string getPath() const
return the file path as a string
bool exists() const
return true if the file exists.
an abstract class representing a source of serialized Policy parameter data.
static const std::string EXT_XML
the PAF file extension, ".paf"
PolicyFile(const std::string &filepath, const SupportedFormats::Ptr &fmts=defaultFormats)
create a Policy file that points a file with given path.
A base class for image defects.
boost::filesystem::path _file
the path to the underlying policy file
static const std::string EXT_PAF
virtual void load(Policy &policy) const
load the data from this Policy source into a Policy object
virtual const std::string & getFormatName()
return the name of the format that the data is stored in.
static const boost::regex COMMENT
reg-exp for an empty line
Base class for all persistable classes.
static SupportedFormats::Ptr defaultFormats
returns true if the given string containing a content identifier indicates that it contains dictionar...
a representation of a file containing Policy parameter data.
static const boost::regex CONTENTID
reg-exp for the start of a comment