28 #ifndef __DOM_OUTPUT__
29 #define __DOM_OUTPUT__
30 #if !defined ONLY_LOCAL_PROXY || defined INCLUDE_MIDDLE_MIX
31 #include "../CAQueue.hpp"
37 #define MEM_FORMART_TARGET_SPACE 1024
54 #if (XERCES_VERSION_MAJOR <3)
55 virtual void writeChars(
const XMLByte*
const toWrite,
const unsigned int count, XMLFormatter*
const )
57 virtual void writeChars(
const XMLByte*
const toWrite,
const XMLSize_t count, XMLFormatter*
const )
60 const XMLByte* write=toWrite;
91 if(buff==NULL||size==NULL)
96 if(*size<m_pQueue->getSize())
239 #if (_XERCES_VERSION >= 20300)
241 XMLFormatter::NoEscapes, XMLFormatter::UnRep_Fail);
244 XMLFormatter::NoEscapes, XMLFormatter::UnRep_Fail);
#define MEM_FORMART_TARGET_SPACE
This is a simple FIFO-Queue.
SINT32 add(const void *buff, UINT32 size)
Adds data to the Queue.
SINT32 peek(UINT8 *pbuff, UINT32 *psize)
Peeks data from the Queue.
UINT32 getSize()
Returns the size of stored data in byte.
static UINT8 * dumpToMem(const DOMNode *node, UINT32 *size)
Dumps the Node an returns a pointer to the memory.
static UINT8 * dumpToString(const DOMNode *node, bool a_bAddNewLine)
Dumps the Node an returns a pointer to a null terminated string.
MemFormatTarget * m_pFormatTarget
static SINT32 makeCanonical(const DOMNode *node, UINT8 *buff, UINT32 *size)
Dumps the node and all childs in a 'cannonical form' into buff.
static const XMLCh m_UTF8[6]
XMLFormatter * m_pFormatter
static const XMLCh m_XML[41]
static const XMLCh m_1_0[4]
static UINT8 * makeCanonical(const DOMNode *node, UINT32 *size)
Dumps the Node in a cannonical form and returns a pointer to the memory.
static UINT8 * dumpToMem(const DOMNode *node, UINT32 *size, OUTPUT_FORMAT a_outputFormat)
Dumps the Node an returns a pointer to the memory.
SINT32 dumpNode(const DOMNode *toWrite, bool bCanonical)
Dumps a Node of an XML Document.
static SINT32 dumpToMem(const DOMNode *node, UINT8 *buff, UINT32 *size)
Dumps the node and all childs into buff.