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
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);
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.
void writeStartElement(const std::string &qName)
std::vector< std::size_t > m_topElementSet
This vector gives the parent node of each element.
void addText(const std::string &qValue)
Adds a XML value to the last inserted element.
void writeStartDocument(const std::string &encoding, const std::string &standalone)
This class models a XML writer object.
void writeElement(const std::string &qName, const std::string &value)
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.
XERCES_CPP_NAMESPACE_QUALIFIER DOMImplementation * m_impl
DOM element - implementation.
Writer()
Default constructor.
void writeEndElement(const std::string &qName)
void writeValue(const std::string &value)
void writeAttribute(const std::string &attName, const std::string &value)
void setRootNamespaceURI(const std::string &uri)
XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * m_doc
DOM element - document.