//checks to see if two profiles are equal bool Profile::IsEqual(const Profile &profile) { if(this->m_avgPortCount != profile.m_avgPortCount) { return false; } if(this->m_count != profile.m_count) { return false; } if(abs(this->m_distribution - profile.m_distribution) > EQUALITY_THRESHOLD) { return false; } if(this->m_name.compare(profile.m_name) != 0) { return false; } if(this->m_osclass.compare(profile.m_osclass) != 0) { return false; } if(this->IsDropRateInherited() !=profile.IsDropRateInherited()) { return false; } if(this->IsPersonalityInherited() != profile.IsPersonalityInherited()) { return false; } if(this->IsUptimeInherited() !=profile.IsUptimeInherited()) { return false; } if(this->GetParentProfile() !=profile.GetParentProfile()) { return false; } if(this->GetPersonality().compare(profile.GetPersonality()) != 0 ) { return false; } if(this->GetDropRate().compare(profile.GetDropRate()) != 0) { return false; } if(this->GetUptimeMax() != profile.GetUptimeMax()) { return false; } if(this->GetUptimeMaxNonRecursive() != profile.GetUptimeMaxNonRecursive()) { return false; } if(this->GetUptimeMin() != profile.GetUptimeMin()) { return false; } if(this->GetUptimeMinNonRecursive() != profile.GetUptimeMinNonRecursive()) { return false; } return true; }