36 #ifndef LSST_PEX_POLICY_FILE_H
37 #define LSST_PEX_POLICY_FILE_H
39 #include <boost/shared_ptr.hpp>
40 #include <boost/regex.hpp>
41 #include <boost/filesystem/path.hpp>
42 #include <boost/filesystem/operations.hpp>
76 explicit PolicyFile(
const std::string& filepath,
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
definition of the PolicySource class
const std::string getPath() const
table::Key< std::string > name
static SupportedFormats::Ptr defaultFormats
PolicyParserFactory::Ptr _pfact
a container for holding hierarchical configuration data in memory.
virtual void load(Policy &policy) const
const std::string & cacheName(const std::string &name)
static const boost::regex COMMENT
reg-exp for an empty line
an abstract class representing a source of serialized Policy parameter data. This might be a file or ...
virtual void load(Policy &policy)
static const std::string EXT_PAF
virtual const std::string & getFormatName()
Interface for Persistable base class.
const std::string & getFormatName() const
boost::filesystem::path _file
Base class for all persistable classes.
boost::shared_ptr< PolicyParserFactory > Ptr
static const boost::regex SPACE_RE
the XML file extension, ".xml"
a representation of a file containing Policy parameter data.
PolicyFile(const std::string &filepath, const SupportedFormats::Ptr &fmts=defaultFormats)
static const boost::regex CONTENTID
reg-exp for the start of a comment
static const std::string EXT_XML
the PAF file extension, ".paf"