Class KomodiaDNS::CDNSAnswer::
operator =()
Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: GetSOARecordNext page: ParseBuffer    Show member index
Public Operator Declared in:
DNSAnswer.h

'Declaration' icon -- Shortcut to top of page. Declaration

CDNSAnswer & operator =(
    const CDNSAnswer& rAnswer);

'Description' icon -- Shortcut to top of page. Description

Assignment operator

'Function Body' icon -- Shortcut to top of page. Function Body

//Check if we are the same?
if (this==&rAnswer)
    return *this;

//Start to copy the data
m_aAnswerType=rAnswer.m_aAnswerType;
m_aAnswer=rAnswer.m_aAnswer;
m_usMXPriority=rAnswer.m_usMXPriority;
m_aAnswer=rAnswer.m_aAnswer;

//Delete the SOA
delete m_pSOA;

//Do we need to copy it
if (rAnswer.m_pSOA)
    m_pSOA=new DNSSOARecord(*rAnswer.m_pSOA);
else
    m_pSOA=NULL;

//Done
return *this;

'See Also' icon -- Shortcut to top of page. See Also

Class Overview Class Overview  |  Public base class CErrorHandler  |  Hierarchy Chart Hierarchy Chart


Get Surveyor!This web site was generated using Surveyor V4.50.811.1.  Click here for more information. Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003.