LSSTApplications
10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
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) |
Public Member Functions inherited from lsst::pex::policy::PolicyWriter | |
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 |
Protected Attributes inherited from lsst::pex::policy::PolicyWriter | |
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.