| LSSTApplications
    20.0.0
    LSSTDataManagementBasePackage | 
 
 
 
Go to the documentation of this file.
   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> 
   77     explicit PolicyFile(
const boost::filesystem::path& filepath,
 
  118     PolicyFile(
const boost::filesystem::path& filepath, 
const boost::filesystem::path& reposDir,
 
  140     PolicyFile(
const boost::filesystem::path& filepath, 
const boost::filesystem::path& reposDir,
 
  232 #endif  // LSST_PEX_POLICY_FILE_H 
  
PolicyFile(const std::string &filepath, const boost::filesystem::path &reposDir, const SupportedFormats::Ptr &fmts=defaultFormats)
create a Policy file that points a file with given path in a policy file repository.
PolicyFile(const boost::filesystem::path &filepath, const boost::filesystem::path &reposDir, const SupportedFormats::Ptr &fmts=defaultFormats)
static const std::string EXT_PAF
static const boost::regex COMMENT
reg-exp for an empty line
PolicyFile(const std::string &filepath, const SupportedFormats::Ptr &fmts=defaultFormats)
create a Policy file that points a file with given path.
static const boost::regex CONTENTID
reg-exp for the start of a comment
PolicyFile(const char *filepath, const SupportedFormats::Ptr &fmts=defaultFormats)
a container for holding hierarchical configuration data in memory.
const std::string & getFormatName() const
static const boost::regex SPACE_RE
the XML file extension, ".xml"
boost::filesystem::path _file
the path to the underlying policy file
Interface for Persistable base class.
virtual const std::string & getFormatName()
return the name of the format that the data is stored in.
PolicyFile(const boost::filesystem::path &filepath, const SupportedFormats::Ptr &fmts=defaultFormats)
an abstract class representing a source of serialized Policy parameter data.
PolicyFile(const std::string &filepath, const boost::filesystem::path &reposDir, const PolicyParserFactory::Ptr &parserFactory)
create a Policy file that points a file with given path in a policy file repository.
A base class for image defects.
PolicyFile(const SupportedFormats::Ptr &fmts=defaultFormats)
create a "null" Policy file that points to an unspecified file.
Base class for all persistable classes.
virtual void load(Policy &policy) const
load the data from this Policy source into a Policy object
const std::string getPath() const
return the file path as a string
definition of the PolicySource class
bool exists() const
return true if the file exists.
a representation of a file containing Policy parameter data.
PolicyFile(const boost::filesystem::path &filepath, const boost::filesystem::path &reposDir, const PolicyParserFactory::Ptr &parserFactory)
PolicyFile(const std::string &filepath, const PolicyParserFactory::Ptr &parserFactory)
create a Policy file that points a file with given path.
PolicyFile(const boost::filesystem::path &filepath, const PolicyParserFactory::Ptr &parserFactory)
virtual void load(Policy &policy)
static const std::string EXT_XML
the PAF file extension, ".paf"
static SupportedFormats::Ptr defaultFormats
a default set of formats