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 definition of the PolicySource class
virtual void load(Policy &policy)
load the data from this Policy source into a Policy object
a container for holding hierarchical configuration data in memory.
static const boost::regex COMMENT
reg-exp for an empty line
void load(Policy &policy) const
load the data from this Policy source into a Policy object
virtual const std::string & getFormatName()
return the name of the format that the data is stored in.
an abstract class representing a source of serialized Policy parameter data.
a representation of a string containing Policy parameter data
static SupportedFormats::Ptr defaultFormats
returns true if the given string containing a content identifier indicates that it contains dictionar...
PolicyString(const std::string &data, const SupportedFormats::Ptr &fmts=defaultFormats)
create a PolicyString that's wrapped around a given string.
static const boost::regex CONTENTID
reg-exp for the start of a comment
static const boost::regex SPACE_RE
std::string _data
the policy data
const std::string & getFormatName() const
return the name of the format that the data is stored in.
const std::string & getData() const
return the wrapped policy data as a string