Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

oofXMLDBWriter Class Reference
[OOFILE XML support.]

#include <oofxmldb.h>

Collaboration diagram for oofXMLDBWriter:

Collaboration graph
[legend]
List of all members.

Detailed Description

Write a database to XML on iostream with included tag.

Writes fields as elements and related tables as nested elements. Does not generate a DTD. Writes the schema as our variant of XMLSchema.

Todo:
reconcile our schema with "standards" from Microsoft


Public Member Functions

 oofXMLDBWriter (std::ostream &, dbView *, oofIDfactory &)
void startDatabase ()
void endDatabase ()
void writeDatabase ()
void writeRecord ()
void writeSchema ()
 used when you want to write a single dbView's schema to a stream.

void startSchema ()
 creates a string containing the schema for a view, excluding the end tag, in case we nest other data.

void endSchema ()

Static Public Member Functions

oofString schemaHeader (const char *indentString)
oofString fieldtype2Attributes (const dbField *)


Constructor & Destructor Documentation

oofXMLDBWriter::oofXMLDBWriter std::ostream &  ,
dbView ,
oofIDfactory
 


Member Function Documentation

void oofXMLDBWriter::endDatabase  ) 
 

void oofXMLDBWriter::endSchema  ) 
 

oofString oofXMLDBWriter::fieldtype2Attributes const dbField  )  [static]
 

oofString oofXMLDBWriter::schemaHeader const char *  indentString  )  [static]
 

void oofXMLDBWriter::startDatabase  ) 
 

void oofXMLDBWriter::startSchema  ) 
 

creates a string containing the schema for a view, excluding the end tag, in case we nest other data.

flattens output so all data in a dbView appears to have been in the view's table which may continue to be a sufficient solution.

Todo:
cope better with data on related tables

void oofXMLDBWriter::writeDatabase  ) 
 

void oofXMLDBWriter::writeRecord  ) 
 

void oofXMLDBWriter::writeSchema  ) 
 

used when you want to write a single dbView's schema to a stream.

eg: if you were writing a separate schema document assumes Schema at outermost level


The documentation for this class was generated from the following files:
Generated on Thu Jan 1 22:10:24 2004 for OOFILE by doxygen 1.3.5