#include <persistable_object.hpp>
Inheritance diagram for ph::common::object_writer:
Definition at line 122 of file persistable_object.hpp.
Public Member Functions | |
virtual | ~object_writer () |
virtual bool | start (const std::string &tagname)=0 |
virtual bool | attr (const std::string &name, const std::string &value)=0 |
virtual bool | data (const std::string &d)=0 |
virtual bool | end (const std::string &tagname)=0 |
|
Definition at line 128 of file persistable_object.hpp. |
|
Start a new tag with the writer. Implemented in ph::persist::dumpobj, and ph::persist::xml::writeobj. Referenced by ph::common::object_writer_context::object_writer_context(). |
|
Write out name/value pairs for the tag. Implemented in ph::persist::dumpobj, and ph::persist::xml::writeobj. Referenced by ph::common::object_writer_context::attr(). |
|
Write out arbitrary data for the tag. Implemented in ph::persist::dumpobj, and ph::persist::xml::writeobj. Referenced by ph::common::object_writer_context::data(). |
|
End the tag. Note that it is usually possible for the implementation of the writer to save away the tag name, but for keeping the writers simple, it is included again. Implemented in ph::persist::dumpobj, and ph::persist::xml::writeobj. Referenced by ph::common::object_writer_context::~object_writer_context(). |