LSSTApplications
10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
LSSTDataManagementBasePackage
|
#include <PAFWriter.h>
Public Member Functions | |
PAFWriter (std::ostream *out=0) | |
PAFWriter (std::ostream *out, const std::string indent) | |
virtual | ~PAFWriter () |
PAFWriter (const std::string &file) | |
PAFWriter (const char *file) | |
virtual void | writeBools (const std::string &name, const Policy::BoolArray &values) |
virtual void | writeInts (const std::string &name, const Policy::IntArray &values) |
virtual void | writeDoubles (const std::string &name, const Policy::DoubleArray &values) |
virtual void | writeStrings (const std::string &name, const Policy::StringArray &values) |
virtual void | writePolicies (const std::string &name, const Policy::PolicyPtrArray &values) |
virtual void | writeFiles (const std::string &name, const Policy::FilePtrArray &values) |
![]() | |
PolicyWriter (std::ostream *out=0) | |
PolicyWriter (const std::string &file, bool append=false) | |
virtual | ~PolicyWriter () |
virtual void | write (const Policy &policy, bool doDecl=false) |
void | close () |
std::string | toString () |
virtual void | writeBool (const std::string &name, bool value) |
virtual void | writeInt (const std::string &name, int value) |
virtual void | writeDouble (const std::string &name, double value) |
virtual void | writeString (const std::string &name, const std::string &value) |
virtual void | writePolicy (const std::string &name, const Policy &value) |
virtual void | writeFile (const std::string &name, const PolicyFile &value) |
Protected Attributes | |
std::string | _indent |
![]() | |
std::ostream * | _os |
An abstract interface for writing policy data to streams
Definition at line 44 of file PAFWriter.h.
|
inlineexplicit |
create a writer attached to an output stream
out | the output stream to write data to |
Definition at line 51 of file PAFWriter.h.
|
inline |
create a writer attached to an output stream
out | the output stream to write data to |
indent | a string (of spaces) to used as indentation for each line printed out. |
Definition at line 60 of file PAFWriter.h.
|
inlineexplicit |
create a writer attached to an output file
file | the output file |
Definition at line 69 of file PAFWriter.h.
|
inlineexplicit |
create a writer attached to an output file
file | the output file |
Definition at line 71 of file PAFWriter.h.
|
virtual |
delete this writer
|
virtual |
write an array of property values with a given name
name | the name to save the values as. This may be a hierarchical name; however, an implementation is not guaranteed to support it. If it cannot, it should raise an exception. |
values | the values to save under that name. |
Implements lsst::pex.policy::PolicyWriter.
|
virtual |
write an array of property values with a given name
name | the name to save the values as. This may be a hierarchical name; however, an implementation is not guaranteed to support it. If it cannot, it should raise an exception. |
values | the values to save under that name. |
Implements lsst::pex.policy::PolicyWriter.
|
virtual |
write an array of property values with a given name
name | the name to save the values as. This may be a hierarchical name; however, an implementation is not guaranteed to support it. If it cannot, it should raise an exception. |
values | the values to save under that name. |
Implements lsst::pex.policy::PolicyWriter.
|
virtual |
write an array of property values with a given name
name | the name to save the values as. This may be a hierarchical name; however, an implementation is not guaranteed to support it. If it cannot, it should raise an exception. |
values | the values to save under that name. |
Implements lsst::pex.policy::PolicyWriter.
|
virtual |
write an array of property values with a given name
name | the name to save the values as. This may be a hierarchical name; however, an implementation is not guaranteed to support it. If it cannot, it should raise an exception. |
values | the values to save under that name. |
Implements lsst::pex.policy::PolicyWriter.
|
virtual |
write an array of property values with a given name
name | the name to save the values as. This may be a hierarchical name; however, an implementation is not guaranteed to support it. If it cannot, it should raise an exception. |
values | the values to save under that name. |
Implements lsst::pex.policy::PolicyWriter.
|
protected |
the indentation string
Definition at line 108 of file PAFWriter.h.