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

ph::persist::xml::writeobj Class Reference

#include <writeobj.hpp>

Inheritance diagram for ph::persist::xml::writeobj:

ph::common::object_writer

Detailed Description

Definition at line 25 of file writeobj.hpp.

Public Member Functions

 writeobj (std::ostream *stream, std::ostream *console)
virtual bool start (const std::string &tagname)
virtual bool attr (const std::string &name, const std::string &value)
virtual bool data (const std::string &d)
virtual bool end (const std::string &tagname)


Constructor & Destructor Documentation

ph::persist::xml::writeobj::writeobj std::ostream *  stream,
std::ostream *  console
[inline]
 

Definition at line 31 of file writeobj.hpp.


Member Function Documentation

bool writeobj::start const std::string &  tagname  )  [virtual]
 

Start a new tag with the writer.

Implements ph::common::object_writer.

Definition at line 42 of file writeobj.cpp.

bool writeobj::attr const std::string &  name,
const std::string &  value
[virtual]
 

Write out name/value pairs for the tag.

Implements ph::common::object_writer.

Definition at line 117 of file writeobj.cpp.

bool writeobj::data const std::string &  d  )  [virtual]
 

Write out arbitrary data for the tag.

Implements ph::common::object_writer.

Definition at line 134 of file writeobj.cpp.

bool writeobj::end const std::string &  tagname  )  [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.

Implements ph::common::object_writer.

Definition at line 78 of file writeobj.cpp.


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