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