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

FreeFareTagBusiness.h 719B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // Created by robin on 7/22/16.
  3. //
  4. #ifndef MIFARE_TOOLS_FREEFARETAGBUSINESS_H
  5. #define MIFARE_TOOLS_FREEFARETAGBUSINESS_H
  6. #include <boost/shared_ptr.hpp>
  7. #include <DataAccess/FreeFareTag.h>
  8. class FreeFareTagBusiness
  9. {
  10. public:
  11. FreeFareTagBusiness(std::shared_ptr<FreeFareTag> tag);
  12. ResultBool authenticate(int sector, int block, std::string key, int keyType);
  13. ResultString readBlock(int sector, int block, std::string key, int keyType);
  14. ResultString readSector(int sector, std::string key, int keyType);
  15. const std::string & getUid() const;
  16. std::shared_ptr<FreeFareTag> getTag() const;
  17. protected:
  18. std::shared_ptr<FreeFareTag> _tag;
  19. };
  20. #endif //MIFARE_TOOLS_FREEFARETAGBUSINESS_H