47 if (repos.
length() > 0) _repos /= repos;
48 _file = _repos / filepath;
69 productName_DIR.
begin(),
73 productName_DIR +=
"_DIR";
76 const char *ipath = getenv(productName_DIR.
c_str());
79 productName_DIR +
": environment variable not set");
81 return fs::path(ipath);
virtual void load(Policy &policy) const
load the data from this Policy source into a Policy object.
static boost::filesystem::path installPathFor(const char *const productName)
return the file path to the installation directory of a given named product.
the definition of the DefaultPolicyFile class
a container for holding hierarchical configuration data in memory.
Reports attempts to access elements using an invalid key.
A base class for image defects.
int loadPolicyFiles(bool strict=true)
Recursively replace all PolicyFile values with the contents of the files they refer to...
boost::filesystem::path _file
the path to the underlying policy file
DefaultPolicyFile(const char *const productName, const std::string &filepath, const std::string &repos="", bool strict=true)
define a default policy file
virtual boost::filesystem::path getInstallPath(const char *const productName)
return the file path to the installation directory of a given named product.
#define LSST_EXCEPT(type,...)
Create an exception with a given type.
virtual void load(Policy &policy) const
load the data from this Policy source into a Policy object
a representation of a file containing Policy parameter data.