1 #ifndef __CAXMLCOSTCONFIRMATION__
2 #define __CAXMLCOSTCONFIRMATION__
12 class CAXMLCostConfirmation
17 CAXMLCostConfirmation();
19 UINT64 m_lTransferredBytes;
22 CAPriceInfo** m_priceCerts;
25 XERCES_CPP_NAMESPACE::DOMDocument* m_domDocument;
26 static const char*
const ms_pStrElemName;
30 if (a_hashNumber < 0 || a_hashNumber > m_priceCertsLen - 1)
42 static CAXMLCostConfirmation* getInstance(
UINT8 * strXmlData,
UINT32 strXMlDataLen);
47 static CAXMLCostConfirmation* getInstance(DOMElement* elemRoot);
48 ~CAXMLCostConfirmation();
52 return m_priceCertsLen;
62 return m_priceCerts[a_hashNumber]->getPosition();
71 return m_priceCerts[a_hashNumber]->getPriceCertHash();
80 return m_priceCerts[a_hashNumber]->getMixId();
86 if(m_domDocument==NULL)
100 UINT64 getTransferredBytes()
102 return m_lTransferredBytes;
107 return m_lAccountNumber;
127 UINT8* pTmpStr = NULL;
130 pTmpStr =
new UINT8[strlen((
char*)m_pStrPIID)+1];
131 strcpy((
char*)pTmpStr, (
char*)m_pStrPIID);
136 static const char*
const getXMLElementName()
138 return ms_pStrElemName;
141 XERCES_CPP_NAMESPACE::DOMDocument* getXMLDocument()
143 return m_domDocument;
static SINT32 dumpToMem(const DOMNode *node, UINT8 *buff, UINT32 *size)
Dumps the node and all childs into buff.