SystemConfigStruct.cpp 826 B

123456789101112131415161718192021222324252627282930
  1. #include "SystemConfigStruct.h"
  2. /* =============================================================================
  3. * 基础配置结构体
  4. * ============================================================================= */
  5. bool BaseConfig_t::operator==(const BaseConfig_t &other) const
  6. {
  7. if(&other == this)
  8. {
  9. return true; // 自身比较
  10. }
  11. if(strServerIP == other.strServerIP &&
  12. nRecordMode == other.nRecordMode &&
  13. strDriverName == other.strDriverName &&
  14. nNotConsistency == other.nNotConsistency &&
  15. isEnableMultiCore == other.isEnableMultiCore &&
  16. isEnableDebugLog == other.isEnableDebugLog &&
  17. isClearDirSystemOn == other.isClearDirSystemOn &&
  18. isUsingSoundCardName == other.isUsingSoundCardName)
  19. {
  20. return true;
  21. }
  22. return true;
  23. }