26 #ifndef __TERRALIB_XERCES_INTERNAL_WRITER_H 
   27 #define __TERRALIB_XERCES_INTERNAL_WRITER_H 
   30 #include "../xml/AbstractWriter.h" 
   39 #include <xercesc/util/XercesDefs.hpp> 
   40 #include <xercesc/util/TransService.hpp> 
   43 XERCES_CPP_NAMESPACE_BEGIN
 
   46 class DOMImplementation;
 
   47 XERCES_CPP_NAMESPACE_END
 
   74         void writeElement(
const std::string& qName, 
const std::string& value);
 
   80         void writeElement(
const std::string& qName, boost::uint32_t value);
 
   84         void writeElement(
const std::string& qName, boost::uint64_t value);
 
  129         XERCES_CPP_NAMESPACE_QUALIFIER DOMImplementation* 
m_impl; 
 
  130         XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument* 
m_doc;        
 
Writer()
Default constructor.
 
void writeAttribute(const std::string &attName, boost::uint32_t value)
 
void writeElement(const std::string &qName, const std::string &value)
 
void writeAttribute(const std::string &attName, boost::int64_t value)
 
std::unique_ptr< xercesc::XMLTranscoder > m_transcoder
The transcoder to be used. TerraLib always expect the encoding to be UTF-8, so we must force it.
 
void writeValue(const std::string &value)
 
void writeStartElement(const std::string &qName)
 
void writeValue(boost::uint32_t value)
 
void writeElement(const std::string &qName, boost::uint64_t value)
 
void writeElement(const std::string &qName, boost::uint32_t value)
 
void writeStartDocument(const std::string &encoding, const std::string &standalone)
 
std::vector< std::size_t > m_topElementSet
This vector gives the parent node of each element.
 
void writeAttribute(const std::string &attName, const double &value)
 
void writeElement(const std::string &qName, boost::int32_t value)
 
std::string getContent() override
Gets the XML content in a std::string format.
 
void writeAttribute(const std::string &attName, boost::int32_t value)
 
void addText(const std::string &qValue)
Adds a XML value to the last inserted element.
 
void writeValue(boost::int32_t value)
 
void writeValue(boost::int64_t value)
 
std::size_t m_indice
Index to build the ElementSet vector.
 
void writeElement(const std::string &qName, const double &value)
 
std::vector< XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * > m_elementSet
Vector that contains all the elements (nodes).
 
void setRootNamespaceURI(const std::string &uri)
 
void writeValue(boost::uint64_t value)
 
std::vector< std::string > m_topElementNamesSet
This vector gives the parent node of each element.
 
void writeAttribute(const std::string &attName, const std::string &value)
 
std::size_t m_topIndice
Index of the parent node.
 
void writeElement(const std::string &qName, boost::int64_t value)
 
void writeValue(const double &value)
 
void writeAttribute(const std::string &attName, boost::uint64_t value)
 
void writeEndElement(const std::string &qName)
 
XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * m_doc
DOM element - document.
 
XERCES_CPP_NAMESPACE_QUALIFIER DOMImplementation * m_impl
DOM element - implementation.
 
This class models a XML writer object.
 
Proxy configuration file for TerraView (see terraview_config.h).