Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

ph::common::object_writer Class Reference

#include <persistable_object.hpp>

Inheritance diagram for ph::common::object_writer:

ph::persist::dumpobj ph::persist::xml::writeobj

Detailed Description

Abstract class used to write an object out.

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


Constructor & Destructor Documentation

virtual ph::common::object_writer::~object_writer  )  [inline, virtual]
 

Definition at line 128 of file persistable_object.hpp.


Member Function Documentation

virtual bool ph::common::object_writer::start const std::string &  tagname  )  [pure virtual]
 

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().

virtual bool ph::common::object_writer::attr const std::string &  name,
const std::string &  value
[pure virtual]
 

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().

virtual bool ph::common::object_writer::data const std::string &  d  )  [pure virtual]
 

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().

virtual bool ph::common::object_writer::end const std::string &  tagname  )  [pure virtual]
 

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().


The documentation for this class was generated from the following file:
Generated on Wed Apr 5 22:03:34 2006 for cppxmlobj by  doxygen 1.4.3