CompareResult.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #ifndef COMPARERESULT_H_
  2. #define COMPARERESULT_H_
  3. #include "GlobalVariable.h"
  4. #include "ChannelParam.h"
  5. #include <QDateTime>
  6. /**
  7. * @brief 单个通道的音量包信息
  8. *
  9. */
  10. struct OneRoadVolume_t
  11. {
  12. CompareItemRoadInfo_t roadInfo; /* 录音通道ID */
  13. // std::string strRoadName; /* 录音通道名称 */
  14. // int Road_num = 0; /* 录音通道编号 */
  15. bool isSilence = false; /* 是否静音 */
  16. bool isOverload = false; /* 是否过载 */
  17. bool isReversed = false; /* 是否反相 */
  18. bool isNoise = false; /* 是否噪音 */
  19. bool isNoiseWarning = false; /* 是否噪音预警 */
  20. bool isConsistency = true; /* 是否一致性 */
  21. bool isNotConsistencyWarning = false; /* 是否有不一致预警 */
  22. double similarity = 0.0; /* 相似度 */
  23. int leftRealTimeDB; /* 左声道实时音量 */
  24. int rightRealTimeDB; /* 右声道实时音量 */
  25. int vecleftDB[VOLUME_INFO_NUM]; /* 左声道音量包 */
  26. int vecrightDB[VOLUME_INFO_NUM]; /* 右声道音量包 */
  27. QDateTime dateTime; /* 录音时间,这个是内部使用的 */
  28. OneRoadVolume_t();
  29. ~OneRoadVolume_t() = default;
  30. OneRoadVolume_t& operator=(const OneRoadVolume_t &obj);
  31. OneRoadVolume_t(const OneRoadVolume_t& obj);
  32. };
  33. /**
  34. * @brief 对比项的音量包信息
  35. *
  36. */
  37. struct CompareResult_t
  38. {
  39. int compareItemID = 0; /* 对比项ID */
  40. std::string compareItemName; /* 对比项名称 */
  41. bool isClientAlarm = false; /* 是否客户端报警 */
  42. QDateTime dateTime; /* 对比时间 */
  43. std::map<int, OneRoadVolume_t> mapRoadVolumes;/* 录音通道音量包列表 */
  44. CompareResult_t() = default;
  45. ~CompareResult_t() = default;
  46. CompareResult_t& operator=(const CompareResult_t &obj);
  47. CompareResult_t(const CompareResult_t& obj);
  48. };
  49. #endif // COMPARERESULT_H_