55 (*_os) <<
_indent << name <<
": ";
56 Policy::BoolArray::const_iterator vi;
57 for(vi = values.begin(); vi != values.end(); ++vi) {
58 (*_os) << ((*vi) ?
"true" :
"false");
59 if (vi+1 != values.end()) (*
_os) <<
" ";
66 (*_os) <<
_indent << name <<
": ";
67 Policy::IntArray::const_iterator vi;
68 for(vi = values.begin(); vi != values.end(); ++vi) {
70 if (vi+1 != values.end()) (*
_os) <<
" ";
77 (*_os) <<
_indent << name <<
": ";
78 Policy::DoubleArray::const_iterator vi;
79 for(vi = values.begin(); vi != values.end(); ++vi) {
81 if (vi+1 != values.end()) (*
_os) <<
" ";
87 (*_os) <<
_indent << name <<
": ";
88 Policy::StringArray::const_iterator vi;
89 for(vi = values.begin(); vi != values.end(); ++vi) {
90 (*_os) <<
'"' << *vi <<
'"';
91 if (vi+1 != values.end()) (*
_os) <<
" ";
99 Policy::PolicyPtrArray::const_iterator vi;
100 for(vi = values.begin(); vi != values.end(); ++vi) {
110 (*_os) <<
_indent << name <<
": ";
111 Policy::FilePtrArray::const_iterator vi;
112 for(vi = values.begin(); vi != values.end(); ++vi) {
113 (*_os) <<
'@' << (*vi)->getPath();
114 if (vi+1 != values.end()) (*
_os) <<
" ";
virtual void writePolicies(const std::string &name, const Policy::PolicyPtrArray &values)
write an array of property values with a given name
std::vector< FilePtr > FilePtrArray
definition of the PolicyFile class
std::vector< bool > BoolArray
virtual void writeDoubles(const std::string &name, const Policy::DoubleArray &values)
write an array of property values with a given name
std::vector< std::string > StringArray
std::vector< double > DoubleArray
virtual void writeBools(const std::string &name, const Policy::BoolArray &values)
write an array of property values with a given name
a container for holding hierarchical configuration data in memory.
virtual ~PAFWriter()
delete this writer
std::vector< Ptr > PolicyPtrArray
virtual void writeInts(const std::string &name, const Policy::IntArray &values)
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 writeFiles(const std::string &name, const Policy::FilePtrArray &values)
write an array of property values with a given name
A base class for image defects.
definition of the PAFWriter class
std::string _indent
the indentation string
PAFWriter(std::ostream *out=0)
create a writer attached to an output stream
virtual void writeStrings(const std::string &name, const Policy::StringArray &values)
write an array of property values with a given name
std::vector< int > IntArray