协能can协议
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CallBackHandleI.h 638B

12345678910111213141516171819202122232425262728293031323334353637
  1. /**
  2. * @content:CallBackHandleI回调接口定义
  3. * @time:2016-9-7
  4. * @author:Mr_zhu
  5. * @version: V1.0
  6. * @describe:
  7. * 1#2016-9-7#V1.0#首次生成
  8. */
  9. #ifndef INCLUDE_ICALLBACKHANDLE_H_
  10. #define INCLUDE_ICALLBACKHANDLE_H_
  11. #include "../common/Type.h"
  12. interface CallBackHandleI{
  13. /**
  14. * 数据接收回调接口
  15. */
  16. virtual HRESULT onRecieveData(
  17. PBYTE pbuf,
  18. const unsigned int len
  19. ) = 0;
  20. /**
  21. * 获取接收数据
  22. */
  23. virtual HRESULT getRecieveData(PBYTE pbuf, int& len) = 0;
  24. /**
  25. * 清空数据缓冲区
  26. */
  27. virtual HRESULT resetBuf() = 0;
  28. virtual ~CallBackHandleI(){}
  29. };
  30. #endif /* INCLUDE_ICALLBACKHANDLE_H_ */