26 #ifndef __TERRALIB_XERCES_INTERNAL_WRITER_H
27 #define __TERRALIB_XERCES_INTERNAL_WRITER_H
30 #include "../xml/AbstractWriter.h"
38 #include <xercesc/util/XercesDefs.hpp>
41 XERCES_CPP_NAMESPACE_BEGIN
44 class DOMImplementation;
45 XERCES_CPP_NAMESPACE_END
68 void writeStartDocument(
const std::string& encoding,
const std::string& standalone);
70 void writeStartElement(
const std::string& qName);
72 void writeElement(
const std::string& qName,
const std::string& value);
74 void writeElement(
const std::string& qName,
const double& value);
76 void writeElement(
const std::string& qName, boost::int32_t value);
78 void writeElement(
const std::string& qName, boost::uint32_t value);
80 void writeElement(
const std::string& qName, boost::int64_t value);
82 void writeElement(
const std::string& qName, boost::uint64_t value);
84 void writeAttribute(
const std::string& attName,
const std::string& value);
86 void writeAttribute(
const std::string& attName,
const double& value);
88 void writeAttribute(
const std::string& attName, boost::int32_t value);
90 void writeAttribute(
const std::string& attName, boost::uint32_t value);
92 void writeAttribute(
const std::string& attName, boost::int64_t value);
94 void writeAttribute(
const std::string& attName, boost::uint64_t value);
96 void writeValue(
const std::string& value);
98 void writeValue(
const double& value);
100 void writeValue(boost::int32_t value);
102 void writeValue(boost::uint32_t value);
104 void writeValue(boost::int64_t value);
106 void writeValue(boost::uint64_t value);
108 void writeEndElement(
const std::string& qName);
112 void setRootNamespaceURI(
const std::string& uri);
121 void addText(
const std::string& qValue);
125 XERCES_CPP_NAMESPACE_QUALIFIER DOMImplementation*
m_impl;
126 XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument*
m_doc;
143 #endif // __TERRALIB_XERCES_INTERNAL_WRITER_H
std::vector< std::string > m_topElementNamesSet
This vector gives the parent node of each element.
std::size_t m_indice
Index to build the ElementSet vector.
std::vector< std::size_t > m_topElementSet
This vector gives the parent node of each element.
This class models a XML writer object.
std::vector< XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * > m_elementSet
Vector that contains all the elements (nodes).
std::size_t m_topIndice
Index of the parent node.
#define TEXERCESEXPORT
You can use this macro in order to export/import classes and functions from this module.
XERCES_CPP_NAMESPACE_QUALIFIER DOMImplementation * m_impl
DOM element - implementation.
XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * m_doc
DOM element - document.