Mixe for Privacy and Anonymity in the Internet
|
#include <DOM_Output.hpp>
Static Public Member Functions | |
static SINT32 | dumpToMem (const DOMNode *node, UINT8 *buff, UINT32 *size) |
Dumps the node and all childs into buff. More... | |
static UINT8 * | dumpToMem (const DOMNode *node, UINT32 *size) |
Dumps the Node an returns a pointer to the memory. More... | |
static UINT8 * | dumpToString (const DOMNode *node, bool a_bAddNewLine) |
Dumps the Node an returns a pointer to a null terminated string. More... | |
static SINT32 | makeCanonical (const DOMNode *node, UINT8 *buff, UINT32 *size) |
Dumps the node and all childs in a 'cannonical form' into buff. More... | |
static UINT8 * | makeCanonical (const DOMNode *node, UINT32 *size) |
Dumps the Node in a cannonical form and returns a pointer to the memory. More... | |
Private Member Functions | |
DOM_Output () | |
~DOM_Output () | |
SINT32 | dumpNode (const DOMNode *toWrite, bool bCanonical) |
Dumps a Node of an XML Document. More... | |
Static Private Member Functions | |
static UINT8 * | dumpToMem (const DOMNode *node, UINT32 *size, OUTPUT_FORMAT a_outputFormat) |
Dumps the Node an returns a pointer to the memory. More... | |
Private Attributes | |
XMLFormatter * | m_pFormatter |
MemFormatTarget * | m_pFormatTarget |
Static Private Attributes | |
static const XMLCh | m_XML [41] |
static const XMLCh | m_UTF8 [6] |
static const XMLCh | m_1_0 [4] |
Definition at line 149 of file DOM_Output.hpp.
|
inlineprivate |
Definition at line 236 of file DOM_Output.hpp.
References m_1_0, m_pFormatTarget, m_pFormatter, and m_UTF8.
|
inlineprivate |
|
private |
Dumps a Node of an XML Document.
toWrite | Node which will be dumped |
bCanonical | if true the dump is done in a 'canonical' way, e.g. white spaces are eliminated etc. |
E_SUCCESS | if successful |
E_UNKNOWN | otherwise |
Definition at line 80 of file DOM_Output.cpp.
References E_UNKNOWN, m_pFormatter, and m_XML.
Referenced by dumpToMem(), and makeCanonical().
Dumps the Node an returns a pointer to the memory.
Note that the string is NOT null-terminated.
node | Node to dump |
size | on return contains the number of XML-Chars copied |
Definition at line 176 of file DOM_Output.hpp.
References dumpToMem(), and OF_DEFAULT.
|
inlinestaticprivate |
Dumps the Node an returns a pointer to the memory.
node | Node to dump |
size | on return contains the number of XML-Chars copied |
a_outputFormat | the output format of the string, e.g. with null termination |
Definition at line 263 of file DOM_Output.hpp.
References MemFormatTarget::dumpMem(), dumpNode(), E_SUCCESS, and m_pFormatTarget.
|
inlinestatic |
Dumps the node and all childs into buff.
Note that the string is NOT null-terminated.
node | Node to dump |
buff | buffer in which to copy the XML-chars |
size | contains the size of buff, on return contains the number of XML-CHars copied |
Definition at line 161 of file DOM_Output.hpp.
References MemFormatTarget::dumpMem(), dumpNode(), E_SUCCESS, E_UNKNOWN, and m_pFormatTarget.
Referenced by CAFirstMix::doUserLogin_internal(), dumpToMem(), dumpToString(), encryptXMLElement(), CAInfoService::getCascadeHeloXMLAsString(), CAASymCipher::getPublicKeyAsXML(), CAAccountingInstance::handleAccountCertificate_internal(), CALastMix::processKeyExchange(), CAMiddleMix::processKeyExchange(), CACmdLnOptions::saveToFile(), CAAccountingInstance::sendAILoginConfirmation(), CAAccountingInstance::sendCCRequest(), CAAccountingInstance::sendInitialCCRequest(), CAAbstractControlChannel::sendXMLMessage(), CACmdLnOptions::setPrevMix(), CAAccountingBIInterface::settleAll(), CAXMLErrorMessage::setValues(), CAMultiSignature::signXML(), CAAbstractXMLEncodable::toXmlString(), and CAInfoService::xmlDocToStringWithSignature().
|
inlinestatic |
Dumps the Node an returns a pointer to a null terminated string.
node | Node to dump |
a_bAddNewLine | true if a new line should be added to the end of the string; false otherwise |
Definition at line 190 of file DOM_Output.hpp.
References dumpToMem(), OF_NEWLINE, and OF_NULL_TERMINATED.
Referenced by CAXMLErrorMessage::setValues().
Dumps the Node in a cannonical form and returns a pointer to the memory.
node | Node to dump |
size | on return contains the number of XML-Chars copied |
Definition at line 227 of file DOM_Output.hpp.
References MemFormatTarget::dumpMem(), dumpNode(), E_SUCCESS, m_pFormatTarget, and OF_DEFAULT.
|
inlinestatic |
Dumps the node and all childs in a 'cannonical form' into buff.
node | Node to dump |
buff | buffer in which to copy the XML-chars |
size | contains the size of buff, on return contains the number of XML-CHars copied |
Definition at line 212 of file DOM_Output.hpp.
References MemFormatTarget::dumpMem(), dumpNode(), E_SUCCESS, E_UNKNOWN, and m_pFormatTarget.
Referenced by CAAccountingInstance::prepareCCRequest(), CAMultiSignature::signXML(), CAMultiSignature::verifyXML(), and CASignature::verifyXML().
|
staticprivate |
Definition at line 277 of file DOM_Output.hpp.
Referenced by DOM_Output().
|
private |
Definition at line 274 of file DOM_Output.hpp.
Referenced by DOM_Output(), dumpToMem(), makeCanonical(), and ~DOM_Output().
|
private |
Definition at line 273 of file DOM_Output.hpp.
Referenced by DOM_Output(), dumpNode(), and ~DOM_Output().
|
staticprivate |
Definition at line 276 of file DOM_Output.hpp.
Referenced by DOM_Output().
|
staticprivate |
Definition at line 275 of file DOM_Output.hpp.
Referenced by dumpNode().