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 Writer.h.

Constructor & Destructor Documentation

◆ Writer()

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

Default constructor.

◆ ~Writer()

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

Destructor.

Member Function Documentation

◆ addText()

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

Adds a XML value to the last inserted element.

Parameters
valueElement value. (Input)

◆ setRootNamespaceURI()

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

◆ setURI()

void te::xml::AbstractWriter::setURI ( const std::string &  uri)
inherited

◆ writeAttribute() [1/6]

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

◆ writeAttribute() [2/6]

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

◆ writeAttribute() [3/6]

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

◆ writeAttribute() [4/6]

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

◆ writeAttribute() [5/6]

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

◆ writeAttribute() [6/6]

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

◆ writeElement() [1/6]

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

◆ writeElement() [2/6]

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

◆ writeElement() [3/6]

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

◆ writeElement() [4/6]

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

◆ writeElement() [5/6]

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

◆ writeElement() [6/6]

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

◆ writeEndElement()

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

◆ writeStartDocument()

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

◆ writeStartElement()

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

◆ writeToFile()

void te::xerces::Writer::writeToFile ( )
virtual

◆ writeValue() [1/6]

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

◆ writeValue() [2/6]

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

◆ writeValue() [3/6]

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

◆ writeValue() [4/6]

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

◆ writeValue() [5/6]

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

◆ writeValue() [6/6]

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

Member Data Documentation

◆ m_doc

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

DOM element - document.

Definition at line 126 of file Writer.h.

◆ m_elementSet

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 Writer.h.

◆ m_encoding

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

Definition at line 136 of file Writer.h.

◆ m_impl

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

DOM element - implementation.

Definition at line 125 of file Writer.h.

◆ m_indice

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

Index to build the ElementSet vector.

Definition at line 130 of file Writer.h.

◆ m_rootNamespaceUri

std::string te::xml::AbstractWriter::m_rootNamespaceUri
protectedinherited

Definition at line 110 of file AbstractWriter.h.

◆ m_standalone

bool te::xerces::Writer::m_standalone
private

Definition at line 137 of file Writer.h.

◆ m_topElementNamesSet

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 Writer.h.

◆ m_topElementSet

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 Writer.h.

◆ m_topIndice

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

Index of the parent node.

Definition at line 131 of file Writer.h.

◆ m_uri

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

Definition at line 109 of file AbstractWriter.h.


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