LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
Go to the documentation of this file.
32 #ifndef LSST_PEX_POLICY_POLICYWRITER_H
33 #define LSST_PEX_POLICY_POLICYWRITER_H
38 #define NULL_FILENAME "/dev/null"
77 virtual void write(
const Policy& policy,
bool doDecl =
false);
139 #endif // LSST_PEX_POLICY_POLICYWRITER_H
An abstract interface for writing policy data to streams.
virtual void writeBool(const std::string &name, bool value)
write the given property out as policy data
virtual void writeInts(const std::string &name, const Policy::IntArray &values)=0
virtual void write(const Policy &policy, bool doDecl=false)
write the contents of a policy the attached stream.
std::shared_ptr< FrameSet > append(FrameSet const &first, FrameSet const &second)
Construct a FrameSet that performs two transformations in series.
a container for holding hierarchical configuration data in memory.
virtual void writeFiles(const std::string &name, const Policy::FilePtrArray &values)=0
std::string toString()
return the written data as a string.
PolicyWriter(std::ostream *out=0)
create a writer attached to an output stream.
virtual void writeString(const std::string &name, const std::string &value)
virtual ~PolicyWriter()
delete this writer
PolicyWriter(const std::string &file, bool append=false)
create a writer attached to a file.
A base class for image defects.
virtual void writeFile(const std::string &name, const PolicyFile &value)
virtual void writePolicies(const std::string &name, const Policy::PolicyPtrArray &values)=0
virtual void writeStrings(const std::string &name, const Policy::StringArray &values)=0
virtual void writeBools(const std::string &name, const Policy::BoolArray &values)=0
write an array of property values with a given name
a representation of a file containing Policy parameter data.
virtual void writeDoubles(const std::string &name, const Policy::DoubleArray &values)=0
std::ostream * _os
the output stream.
void close()
close the output stream.
virtual void writeDouble(const std::string &name, double value)
virtual void writeInt(const std::string &name, int value)
virtual void writePolicy(const std::string &name, const Policy &value)