GlobalVariable.cpp 1007 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #include "GlobalVariable.h"
  2. /* ====================================================================
  3. * CompareItemInfo_t对比项结构体
  4. * ==================================================================== */
  5. CompareItemDetectParam_t& CompareItemDetectParam_t::operator=(const CompareItemDetectParam_t &other)
  6. {
  7. if(this == &other)
  8. {
  9. return *this;
  10. }
  11. isEnable = other.isEnable;
  12. threshold = other.threshold;
  13. nLen = other.nLen;
  14. nSensibility = other.nSensibility;
  15. return *this;
  16. }
  17. CompareItemInfo_t::CompareItemInfo_t(const CompareItemInfo_t &other)
  18. {
  19. *this = other;
  20. }
  21. CompareItemInfo_t& CompareItemInfo_t::operator=(const CompareItemInfo_t &other)
  22. {
  23. if(this == &other)
  24. {
  25. return *this;
  26. }
  27. nID = other.nID;
  28. strName = other.strName;
  29. isEnable = other.isEnable;
  30. listChannels = other.listChannels;
  31. muteParam = other.muteParam;
  32. overloadParam = other.overloadParam;
  33. phaseParam = other.phaseParam;
  34. return *this;
  35. }