#include <CifSchemaMap.h>
Inherits DbOutput.
Inheritance diagram for XmlOutput:


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) |
| 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 |
This class represents an XML output. It re-implements methods for schema and data writing.
| XmlOutput::XmlOutput | ( | Db & | db | ) |
| XmlOutput::~XmlOutput | ( | ) | [virtual] |
| 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] |
| void XmlOutput::_GetTableNameAbbrevXML | ( | string & | abbrev, | |
| string | target | |||
| ) | [private] |
| void XmlOutput::WriteSpecialChar | ( | ostream & | io, | |
| const char & | specChar | |||
| ) | [private, virtual] |
Reimplemented from DbOutput.
const int XmlOutput::_MAX_NAME_LENGTH = 80 [static, private] |
string XmlOutput::_NS_DEFAULT [private] |
1.5.1