协能can协议
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

SubContractI.h 553B

12345678910111213141516171819202122232425262728293031323334
  1. /**
  2. * @content:分包组件接口头文件
  3. * @time:2016-10-6
  4. * @author:Mr_zhu
  5. * @version: V1.0
  6. * @describe:
  7. * 1#2016-10-6#V1.0#首次生成
  8. */
  9. #ifndef INCLUDE_SUBCONTRACTI_H_
  10. #define INCLUDE_SUBCONTRACTI_H_
  11. #include "../common/IUnknown.h"
  12. #include "../common/Type.h"
  13. class Device;
  14. class Item;
  15. class Packet;
  16. interface SubContractI:IUnknown{
  17. /**
  18. * 分包算法
  19. */
  20. virtual bool isSubContract(
  21. Device* device,
  22. Packet* packet,
  23. Item* item,
  24. Packet** rpacket
  25. ) = 0;
  26. virtual ~SubContractI(){}
  27. };
  28. #endif /* INCLUDE_SUBCONTRACTI_H_ */