ProtocolDecodeBase.h 931 B

1234567891011121314151617181920212223242526272829303132333435
  1. // // ******************************************************************
  2. // // /\ /| @File ProtocolDecodeBase.h
  3. // // \ V/ @Brief
  4. // // | "") @Author lijinwen, ghz005@uni-trend.com.cn
  5. // // / | @Creation 2024-05-16
  6. // // / \\ @Modified 2024-05-16
  7. // // *(__\_\
  8. // // ******************************************************************
  9. #pragma once
  10. #include <iostream>
  11. #include <memory>
  12. #include <thread>
  13. #include <atomic>
  14. #include <vector>
  15. #include <string>
  16. #include <stdexcept>
  17. #include "DecodeResult.h"
  18. #include "BaseEnums/ProtocolEnums.h"
  19. #include "BaseHelper/Logger.h"
  20. #define DLL_VERSION "0.1.0"
  21. namespace Protocol
  22. {
  23. class QuantizeParams;
  24. struct DecodeParams;
  25. // 取消解码
  26. void cancel();
  27. inline bool canceled = false;// 取消标志
  28. inline auto status = ProtocolStatus::Canceled; // 解码状态
  29. };