Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

Streamable Class Reference

Base class for all classes that write themselves to an ImLib3DFile. More...

#include <ImLib3DFile.hpp>

Inheritance diagram for Streamable:

Inheritance graph
[legend]
List of all members.

Public Member Functions

xmlpp::Element * CreateWriteNode (const string &topNodeName, ImLib3DFile *file, xmlpp::Element *parentNode, xmlpp::Element *node) const
 Convenience fct that optionally creates root, or current node.
xmlpp::Element * CreateReadNode (const string &topNodeName, ImLib3DFile *file, xmlpp::Element *parentNode, xmlpp::Element *node)
 Convenience fct that optionally creates root, or current node.
virtual void Read (ImLib3DFile *file, xmlpp::Element *parentNode=NULL, xmlpp::Element *node=NULL)=0
 Read this object, either from a current node, a parent node, or the root node of the file.
virtual void Write (ImLib3DFile *file, xmlpp::Element *parentNode=NULL, xmlpp::Element *node=NULL) const =0
 Write this object, either to a current node, a parent node, or the root node of the file.
virtual void ReadFromFile (const string &fname)
 Read this object from a file.
virtual void WriteToFile (const string &fname) const
 Write this object to a file.

Detailed Description

Base class for all classes that write themselves to an ImLib3DFile.

Definition at line 38 of file ImLib3DFile.hpp.


Member Function Documentation

xmlpp::Element * Streamable::CreateWriteNode const string &  topNodeName,
ImLib3DFile file,
xmlpp::Element *  parentNode,
xmlpp::Element *  node
const
 

Convenience fct that optionally creates root, or current node.

Should always be called at the begining of each Write

Definition at line 49 of file ImLib3DFile.cpp.

References XMLBinaryFile::SetRoot().

Referenced by Image3D::CreateWriteNode(), SparseStructure3D::Write(), Signal1Df::Write(), PropertyWrapPtr< PType >::Write(), Properties::Write(), and Affine3DTransform::Write().

xmlpp::Element * Streamable::CreateReadNode const string &  topNodeName,
ImLib3DFile file,
xmlpp::Element *  parentNode,
xmlpp::Element *  node
 

Convenience fct that optionally creates root, or current node.

Should always be called at the begining of each Read

Definition at line 56 of file ImLib3DFile.cpp.

References XMLBinaryFile::GetChild(), and XMLBinaryFile::GetRoot().

Referenced by Image3D::CreateReadNode(), SparseStructure3D::Read(), Signal1Df::Read(), PropertyWrapPtr< PType >::Read(), Properties::Read(), and Affine3DTransform::Read().


The documentation for this class was generated from the following files:
Generated on Fri Jun 17 13:36:20 2005 for ImLib3D by  doxygen 1.4.2