#include "SystemConfigStruct.h" /* ============================================================================= * 基础配置结构体 * ============================================================================= */ bool BaseConfig_t::operator==(const BaseConfig_t &other) const { if(&other == this) { return true; // 自身比较 } if(strServerIP == other.strServerIP && nRecordMode == other.nRecordMode && strDriverName == other.strDriverName && nNotConsistency == other.nNotConsistency && isEnableMultiCore == other.isEnableMultiCore && isEnableDebugLog == other.isEnableDebugLog && isClearDirSystemOn == other.isClearDirSystemOn && isUsingSoundCardName == other.isUsingSoundCardName) { return true; } return false; } bool AICompareConfig_t::operator==(const AICompareConfig_t &other) const { if(&other == this) { return true; // 自身比较 } if(nAiComputeDuration == other.nAiComputeDuration && strAiCompareDir == other.strAiCompareDir) { return true; } return false; } bool NoiseDetectBaseConfig_t::operator==(const NoiseDetectBaseConfig_t &other) const { if(&other == this) { return true; } if( strNoiseServerAddr == other.strNoiseServerAddr && strNoiseDetectDir == other.strNoiseDetectDir && strServerPath == other.strServerPath && nNoiseDetectDuration == other.nNoiseDetectDuration && isEnableNoiseDetect == other.isEnableNoiseDetect && isEnableMainRoadDetect == other.isEnableMainRoadDetect ) { return true; } return false; } bool NoiseDetectParam_t::operator==(const NoiseDetectParam_t &other) const { if(&other == this) { return true; // 自身比较 } if( nNoiseOneDetectDuration == other.nNoiseOneDetectDuration && nNoiseDetectContinueCount == other.nNoiseDetectContinueCount && nNoiseContinueCountIsWarn == other.nNoiseContinueCountIsWarn && nNoiseContinueCountPercent == other.nNoiseContinueCountPercent && dThresholdSlient == other.dThresholdSlient && dThresholdDB == other.dThresholdDB && dThresholdCV == other.dThresholdCV && nPerseg == other.nPerseg && nOverlap == other.nOverlap && nFFT == other.nFFT ) { return true; } return false; } bool DatabaseConfig_t::operator==(const DatabaseConfig_t &other) const { if(&other == this) { return true; // 自身比较 } if( nRecordLogRetain == other.nRecordLogRetain && nOperatorLogRetain == other.nOperatorLogRetain && nRecordFileRetain == other.nRecordFileRetain && nClientPort == other.nClientPort && nListenPort == other.nListenPort && strRecordFilePath == other.strRecordFilePath ) { return true; } return false; }