LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
Go to the documentation of this file.
31 #ifndef LSST_PEX_POLICY_STRING_H
32 #define LSST_PEX_POLICY_STRING_H
35 #include <boost/regex.hpp>
130 #endif // LSST_PEX_POLICY_STRING_H
static const boost::regex SPACE_RE
a container for holding hierarchical configuration data in memory.
a representation of a string containing Policy parameter data
PolicyString(const SupportedFormats::Ptr &fmts=defaultFormats)
create a "null" Policy formed from an empty string.
Interface for Persistable base class.
const std::string & getFormatName() const
an abstract class representing a source of serialized Policy parameter data.
static const boost::regex COMMENT
reg-exp for an empty line
A base class for image defects.
const std::string & getData() const
return the wrapped policy data as a string
void load(Policy &policy) const
load the data from this Policy source into a Policy object
Base class for all persistable classes.
PolicyString(const std::string &data, const SupportedFormats::Ptr &fmts=defaultFormats)
create a PolicyString that's wrapped around a given string.
definition of the PolicySource class
std::string _data
the policy data
virtual void load(Policy &policy)
load the data from this Policy source into a Policy object
static const boost::regex CONTENTID
reg-exp for the start of a comment
static SupportedFormats::Ptr defaultFormats
a default set of formats
virtual const std::string & getFormatName()
return the name of the format that the data is stored in.