ParserBase.hpp 757 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * @Description:
  3. * @Version: 1.0
  4. * @Autor: lishengyin
  5. * @Date: 2022-04-12 15:45:22
  6. * @LastEditors: lishengyin
  7. * @LastEditTime: 2022-04-24 11:09:27
  8. */
  9. #ifndef __PARSERBASE_HPP_
  10. #define __PARSERBASE_HPP_
  11. #include <iostream>
  12. #include "ins_base.hpp"
  13. #include "dataTypeList.hpp"
  14. #include "GetCenter.hpp"
  15. #include "Disposition.hpp"
  16. using namespace std;
  17. namespace ins
  18. {
  19. class ParserBase
  20. {
  21. private:
  22. public:
  23. using ptr = std::shared_ptr<ParserBase>;
  24. ParserBase(){}
  25. ~ParserBase(){}
  26. /**
  27. * @description: 解析数据
  28. * @param {*}
  29. * @return {*}
  30. */
  31. virtual bool ParserData(std::shared_ptr<InsPacket> packet) = 0;
  32. };
  33. } // namespace ins
  34. #endif