void CMsregPacketRegistrationRequest::ReadDataFromFile(CFile& cfFile, DWORD& dwChecksum) { CString csKey; CString csValue; TRY { // Read inherited data. CMsregPacket::ReadDataFromFile(cfFile, dwChecksum); // Read the product name. m_csProductName = ReadString(cfFile, dwChecksum); // Read the field count. DWORD dwFields = ReadDword(cfFile, dwChecksum); // Read Fields. DeleteAllFields(); for (DWORD i = 0; i < dwFields; i++) { csKey = ReadString(cfFile, dwChecksum); csValue = ReadString(cfFile, dwChecksum); AddField(csKey, csValue); } } CATCH_ALL(e) { csKey.Empty(); csValue.Empty(); THROW_LAST(); } END_CATCH_ALL }
void CMsregPacketCatalogOrderRequest::ReadDataFromFile(CFile& cfFile, DWORD& dwChecksum) { CString csKey; CString csValue; TRY { // Read inherited data. CMsregPacket::ReadDataFromFile(cfFile, dwChecksum); // Read the product name. m_csProductName = ReadString(cfFile, dwChecksum); // Read the field count. DWORD dwFields = ReadDword(cfFile, dwChecksum); // Read Fields. DeleteAllFields(); for (DWORD i = 0; i < dwFields; i++) { csKey = ReadString(cfFile, dwChecksum); csValue = ReadString(cfFile, dwChecksum); AddField(csKey, csValue); } // Read the tax. m_dwTax = ReadDword(cfFile, dwChecksum); // Read the shipping. m_dwShipping = ReadDword(cfFile, dwChecksum); // Read the total. m_dwTotal = ReadDword(cfFile, dwChecksum); // Read the offer code. m_csOfferCode = ReadString(cfFile, dwChecksum); // Read the request code. m_csRequestCode = ReadString(cfFile, dwChecksum); // Read the line items. m_LineItems.ReadDataFromFile(cfFile, dwChecksum); } CATCH_ALL(e) { csKey.Empty(); csValue.Empty(); THROW_LAST(); } END_CATCH_ALL }
const DwHeaders& DwHeaders::operator = (const DwHeaders& aHeader) { if (this == &aHeader) return *this; DwMessageComponent::operator = (aHeader); if (mFirstField) { DeleteAllFields(); } if (aHeader.mFirstField) { CopyFields(aHeader.mFirstField); } if (mParent) { mParent->SetModified(); } return *this; }
DwHeaders::~DwHeaders() { if (mFirstField) { DeleteAllFields(); } }
CMsregPacketCatalogOrderRequest::~CMsregPacketCatalogOrderRequest() { DeleteAllFields(); DeleteAllLineItems(); }
CMsregPacketRegistrationRequest::~CMsregPacketRegistrationRequest() { DeleteAllFields(); }
CMsregPacketProductInformationRequest::~CMsregPacketProductInformationRequest() { DeleteAllFields(); DeleteAllLineItems(); }
CMsregPacketProductOrderRequest::~CMsregPacketProductOrderRequest() { DeleteAllFields(); DeleteAllLineItems(); }