123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- #ifndef COMPARERESULT_H_
- #define COMPARERESULT_H_
- #include "GlobalVariable.h"
- #include "ChannelParam.h"
- #include <QDateTime>
- /**
- * @brief 单个通道的音量包信息
- *
- */
- struct OneRoadVolume_t
- {
- CompareItemRoadInfo_t roadInfo; /* 录音通道ID */
- // std::string strRoadName; /* 录音通道名称 */
- // int Road_num = 0; /* 录音通道编号 */
- bool isSilence = false; /* 是否静音 */
- bool isOverload = false; /* 是否过载 */
- bool isReversed = false; /* 是否反相 */
- bool isNoise = false; /* 是否噪音 */
- bool isNoiseWarning = false; /* 是否噪音预警 */
- bool isConsistency = true; /* 是否一致性 */
- bool isNotConsistencyWarning = false; /* 是否有不一致预警 */
- double similarity = 0.0; /* 相似度 */
- int leftRealTimeDB; /* 左声道实时音量 */
- int rightRealTimeDB; /* 右声道实时音量 */
- int vecleftDB[VOLUME_INFO_NUM]; /* 左声道音量包 */
- int vecrightDB[VOLUME_INFO_NUM]; /* 右声道音量包 */
- QDateTime dateTime; /* 录音时间,这个是内部使用的 */
- OneRoadVolume_t();
- ~OneRoadVolume_t() = default;
- OneRoadVolume_t& operator=(const OneRoadVolume_t &obj);
- OneRoadVolume_t(const OneRoadVolume_t& obj);
- };
- /**
- * @brief 对比项的音量包信息
- *
- */
- struct CompareResult_t
- {
- int compareItemID = 0; /* 对比项ID */
- std::string compareItemName; /* 对比项名称 */
- bool isClientAlarm = false; /* 是否客户端报警 */
- QDateTime dateTime; /* 对比时间 */
- std::map<int, OneRoadVolume_t> mapRoadVolumes;/* 录音通道音量包列表 */
- CompareResult_t() = default;
- ~CompareResult_t() = default;
- CompareResult_t& operator=(const CompareResult_t &obj);
- CompareResult_t(const CompareResult_t& obj);
- };
- #endif // COMPARERESULT_H_
|