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