XmlOutput Class Reference

XML output class. More...

#include <CifSchemaMap.h>

Inherits DbOutput.

Inheritance diagram for XmlOutput:

Inheritance graph
[legend]
Collaboration diagram for XmlOutput:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 XmlOutput (Db &db)
virtual ~XmlOutput ()
void WriteSchema (const string &path=String::Empty)
void WriteData (Block &block, const string &path=String::Empty)

Private Member Functions

void _CreateComplexTypeXML (ostream &io, const string &tableName)
void _SetNamespaceDefaultXML (const string &name)
void _GetDefaultNamespaceXML (ostream &io)
void _WriteTable (ostream &io, ISTable *tIn, bool noRevise=false)
void _GetAttributeNameAbbrevXML (string &abbrev, const string &targetAttribute)
void _QualifyNameXML (ostream &io, const string &name)
bool _isElementNullXML (const string &val)
void _GetTableNameAbbrevXML (string &abbrev, string target)
void WriteSpecialChar (ostream &io, const char &specChar)

Private Attributes

string _NS_DEFAULT

Static Private Attributes

static const int _MAX_NAME_LENGTH = 80
static const string _SCHEMA_XML_FILE

Detailed Description

XML output class.

This class represents an XML output. It re-implements methods for schema and data writing.


Constructor & Destructor Documentation

XmlOutput::XmlOutput ( Db db  ) 

XmlOutput::~XmlOutput (  )  [virtual]


Member Function Documentation

void XmlOutput::WriteSchema ( const string &  path = String::Empty  )  [virtual]

Reimplemented from DbOutput.

void XmlOutput::WriteData ( Block &  block,
const string &  path = String::Empty 
) [virtual]

Reimplemented from DbOutput.

void XmlOutput::_CreateComplexTypeXML ( ostream &  io,
const string &  tableName 
) [private]

void XmlOutput::_SetNamespaceDefaultXML ( const string &  name  )  [private]

void XmlOutput::_GetDefaultNamespaceXML ( ostream &  io  )  [private]

void XmlOutput::_WriteTable ( ostream &  io,
ISTable *  tIn,
bool  noRevise = false 
) [private, virtual]

Reimplemented from DbOutput.

void XmlOutput::_GetAttributeNameAbbrevXML ( string &  abbrev,
const string &  targetAttribute 
) [private]

void XmlOutput::_QualifyNameXML ( ostream &  io,
const string &  name 
) [private]

bool XmlOutput::_isElementNullXML ( const string &  val  )  [private]

void XmlOutput::_GetTableNameAbbrevXML ( string &  abbrev,
string  target 
) [private]

void XmlOutput::WriteSpecialChar ( ostream &  io,
const char &  specChar 
) [private, virtual]

Reimplemented from DbOutput.


Member Data Documentation

const int XmlOutput::_MAX_NAME_LENGTH = 80 [static, private]

const string XmlOutput::_SCHEMA_XML_FILE [static, private]

string XmlOutput::_NS_DEFAULT [private]


The documentation for this class was generated from the following files:
Generated on Wed Oct 31 11:05:36 2007 for db-loader-v4.0 by  doxygen 1.5.1