GlobalInfo.h 751 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef GLOBALINFO_H
  2. #define GLOBALINFO_H
  3. #include <QString>
  4. #/**
  5. * @brief 全局信息
  6. *
  7. */
  8. /* 算法相关信息 */
  9. struct AlgorithmInfo
  10. {
  11. QString ActionID; /* 算法ID */
  12. QString ActionName; /* 算法名称 */
  13. int ActionTaskID; /* 算法任务ID */
  14. AlgorithmInfo() = default;
  15. AlgorithmInfo(const AlgorithmInfo& other)
  16. : ActionID(other.ActionID), ActionName(other.ActionName), ActionTaskID(other.ActionTaskID) {}
  17. AlgorithmInfo& operator=(const AlgorithmInfo& other) {
  18. if (this != &other) {
  19. ActionID = other.ActionID;
  20. ActionName = other.ActionName;
  21. ActionTaskID = other.ActionTaskID;
  22. }
  23. return *this;
  24. }
  25. };
  26. #endif /* GLOBALINFO_H */