te::xerces::Writer Class Reference

#include <Writer.h>

Inheritance diagram for te::xerces::Writer:
te::xml::AbstractWriter

Public Member Functions

void setRootNamespaceURI (const std::string &uri)
 
void setURI (const std::string &uri)
 
void writeAttribute (const std::string &attName, const std::string &value)
 
void writeAttribute (const std::string &attName, const double &value)
 
void writeAttribute (const std::string &attName, boost::int32_t value)
 
void writeAttribute (const std::string &attName, boost::uint32_t value)
 
void writeAttribute (const std::string &attName, boost::int64_t value)
 
void writeAttribute (const std::string &attName, boost::uint64_t value)
 
void writeElement (const std::string &qName, const std::string &value)
 
void writeElement (const std::string &qName, const double &value)
 
void writeElement (const std::string &qName, boost::int32_t value)
 
void writeElement (const std::string &qName, boost::uint32_t value)
 
void writeElement (const std::string &qName, boost::int64_t value)
 
void writeElement (const std::string &qName, boost::uint64_t value)
 
void writeEndElement (const std::string &qName)
 
 Writer ()
 Default constructor. More...
 
void writeStartDocument (const std::string &encoding, const std::string &standalone)
 
void writeStartElement (const std::string &qName)
 
void writeToFile ()
 
void writeValue (const std::string &value)
 
void writeValue (const double &value)
 
void writeValue (boost::int32_t value)
 
void writeValue (boost::uint32_t value)
 
void writeValue (boost::int64_t value)
 
void writeValue (boost::uint64_t value)
 
 ~Writer ()
 Destructor. More...
 

Protected Attributes

std::string m_rootNamespaceUri
 
std::string m_uri
 

Private Member Functions

void addText (const std::string &qValue)
 Adds a XML value to the last inserted element. More...
 

Private Attributes

XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * m_doc
 DOM element - document. More...
 
std::vector< XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * > m_elementSet
 Vector that contains all the elements (nodes). More...
 
std::string m_encoding
 
XERCES_CPP_NAMESPACE_QUALIFIER DOMImplementation * m_impl
 DOM element - implementation. More...
 
std::size_t m_indice
 Index to build the ElementSet vector. More...
 
bool m_standalone
 
std::vector< std::string > m_topElementNamesSet
 This vector gives the parent node of each element. More...
 
std::vector< std::size_t > m_topElementSet
 This vector gives the parent node of each element. More...
 
std::size_t m_topIndice
 Index of the parent node. More...
 

Detailed Description

Definition at line 58 of file xerces/Writer.h.

Constructor & Destructor Documentation

te::xerces::Writer::Writer ( )

Default constructor.

Definition at line 57 of file xerces/Writer.cpp.

te::xerces::Writer::~Writer ( )

Destructor.

Definition at line 66 of file xerces/Writer.cpp.

References m_doc.

Member Function Documentation

void te::xerces::Writer::addText ( const std::string &  qValue)
private

Adds a XML value to the last inserted element.

Parameters
valueElement value. (Input)

Definition at line 327 of file xerces/Writer.cpp.

References m_doc, m_elementSet, m_indice, and TE_TR.

Referenced by writeElement(), and writeValue().

void te::xerces::Writer::setRootNamespaceURI ( const std::string &  uri)
void AbstractWriter::setURI ( const std::string &  uri)
inherited

Definition at line 40 of file AbstractWriter.cpp.

References te::xml::AbstractWriter::m_uri.

void te::xerces::Writer::writeAttribute ( const std::string &  attName,
const std::string &  value 
)
virtual

Implements te::xml::AbstractWriter.

Definition at line 251 of file xerces/Writer.cpp.

References m_elementSet, m_topIndice, and TE_TR.

Referenced by writeAttribute().

void te::xerces::Writer::writeAttribute ( const std::string &  attName,
const double &  value 
)
virtual

Implements te::xml::AbstractWriter.

Definition at line 267 of file xerces/Writer.cpp.

References writeAttribute().

void te::xerces::Writer::writeAttribute ( const std::string &  attName,
boost::int32_t  value 
)
virtual

Implements te::xml::AbstractWriter.

Definition at line 272 of file xerces/Writer.cpp.

References writeAttribute().

void te::xerces::Writer::writeAttribute ( const std::string &  attName,
boost::uint32_t  value 
)
virtual

Implements te::xml::AbstractWriter.

Definition at line 277 of file xerces/Writer.cpp.

References writeAttribute().

void te::xerces::Writer::writeAttribute ( const std::string &  attName,
boost::int64_t  value 
)
virtual

Implements te::xml::AbstractWriter.

Definition at line 282 of file xerces/Writer.cpp.

References writeAttribute().

void te::xerces::Writer::writeAttribute ( const std::string &  attName,
boost::uint64_t  value 
)
virtual

Implements te::xml::AbstractWriter.

Definition at line 287 of file xerces/Writer.cpp.

References writeAttribute().

void te::xerces::Writer::writeElement ( const std::string &  qName,
const std::string &  value 
)
virtual

Implements te::xml::AbstractWriter.

Definition at line 202 of file xerces/Writer.cpp.

References addText(), m_doc, m_elementSet, m_indice, m_topElementSet, m_topIndice, and TE_TR.

Referenced by writeElement().

void te::xerces::Writer::writeElement ( const std::string &  qName,
const double &  value 
)
virtual

Implements te::xml::AbstractWriter.

Definition at line 226 of file xerces/Writer.cpp.

References writeElement().

void te::xerces::Writer::writeElement ( const std::string &  qName,
boost::int32_t  value 
)
virtual

Implements te::xml::AbstractWriter.

Definition at line 231 of file xerces/Writer.cpp.

References writeElement().

void te::xerces::Writer::writeElement ( const std::string &  qName,
boost::uint32_t  value 
)
virtual

Implements te::xml::AbstractWriter.

Definition at line 236 of file xerces/Writer.cpp.

References writeElement().

void te::xerces::Writer::writeElement ( const std::string &  qName,
boost::int64_t  value 
)
virtual

Implements te::xml::AbstractWriter.

Definition at line 241 of file xerces/Writer.cpp.

References writeElement().

void te::xerces::Writer::writeElement ( const std::string &  qName,
boost::uint64_t  value 
)
virtual

Implements te::xml::AbstractWriter.

Definition at line 246 of file xerces/Writer.cpp.

References writeElement().

void te::xerces::Writer::writeEndElement ( const std::string &  qName)
virtual

Implements te::xml::AbstractWriter.

Definition at line 322 of file xerces/Writer.cpp.

References m_topElementSet, and m_topIndice.

void te::xerces::Writer::writeStartDocument ( const std::string &  encoding,
const std::string &  standalone 
)
virtual

Implements te::xml::AbstractWriter.

Definition at line 74 of file xerces/Writer.cpp.

References te::common::Convert2UCase(), m_encoding, and m_standalone.

void te::xerces::Writer::writeStartElement ( const std::string &  qName)
virtual
void te::xerces::Writer::writeToFile ( )
virtual
void te::xerces::Writer::writeValue ( const std::string &  value)
virtual

Implements te::xml::AbstractWriter.

Definition at line 292 of file xerces/Writer.cpp.

References addText().

void te::xerces::Writer::writeValue ( const double &  value)
virtual

Implements te::xml::AbstractWriter.

Definition at line 297 of file xerces/Writer.cpp.

References addText().

void te::xerces::Writer::writeValue ( boost::int32_t  value)
virtual

Implements te::xml::AbstractWriter.

Definition at line 302 of file xerces/Writer.cpp.

References addText().

void te::xerces::Writer::writeValue ( boost::uint32_t  value)
virtual

Implements te::xml::AbstractWriter.

Definition at line 307 of file xerces/Writer.cpp.

References addText().

void te::xerces::Writer::writeValue ( boost::int64_t  value)
virtual

Implements te::xml::AbstractWriter.

Definition at line 312 of file xerces/Writer.cpp.

References addText().

void te::xerces::Writer::writeValue ( boost::uint64_t  value)
virtual

Implements te::xml::AbstractWriter.

Definition at line 317 of file xerces/Writer.cpp.

References addText().

Member Data Documentation

XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument* te::xerces::Writer::m_doc
private

DOM element - document.

Definition at line 126 of file xerces/Writer.h.

Referenced by addText(), writeElement(), writeStartElement(), writeToFile(), and ~Writer().

std::vector<XERCES_CPP_NAMESPACE_QUALIFIER DOMElement*> te::xerces::Writer::m_elementSet
private

Vector that contains all the elements (nodes).

Definition at line 128 of file xerces/Writer.h.

Referenced by addText(), writeAttribute(), writeElement(), and writeStartElement().

std::string te::xerces::Writer::m_encoding
private

Definition at line 136 of file xerces/Writer.h.

Referenced by writeStartDocument().

XERCES_CPP_NAMESPACE_QUALIFIER DOMImplementation* te::xerces::Writer::m_impl
private

DOM element - implementation.

Definition at line 125 of file xerces/Writer.h.

Referenced by writeStartElement(), and writeToFile().

std::size_t te::xerces::Writer::m_indice
private

Index to build the ElementSet vector.

Definition at line 130 of file xerces/Writer.h.

Referenced by addText(), writeElement(), and writeStartElement().

std::string te::xml::AbstractWriter::m_rootNamespaceUri
protectedinherited
bool te::xerces::Writer::m_standalone
private

Definition at line 137 of file xerces/Writer.h.

Referenced by writeStartDocument(), and writeStartElement().

std::vector<std::string> te::xerces::Writer::m_topElementNamesSet
private

This vector gives the parent node of each element.

Definition at line 134 of file xerces/Writer.h.

std::vector<std::size_t> te::xerces::Writer::m_topElementSet
private

This vector gives the parent node of each element.

Definition at line 133 of file xerces/Writer.h.

Referenced by writeElement(), writeEndElement(), and writeStartElement().

std::size_t te::xerces::Writer::m_topIndice
private

Index of the parent node.

Definition at line 131 of file xerces/Writer.h.

Referenced by writeAttribute(), writeElement(), writeEndElement(), and writeStartElement().

std::string te::xml::AbstractWriter::m_uri
protectedinherited

Definition at line 109 of file AbstractWriter.h.

Referenced by te::xml::AbstractWriter::setURI(), and writeToFile().


The documentation for this class was generated from the following files: