Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. //
  2. // Created by robin on 7/22/16.
  3. //
  4. #ifndef MIFARE_TOOLS_SECTORDBO_H
  5. #define MIFARE_TOOLS_SECTORDBO_H
  6. #include <string>
  7. #include <DBO/Result.h>
  8. #include <DBO/AccessBitsDbo.h>
  9. class SectorDbo
  10. {
  11. public:
  12. SectorDbo(const std::string& data = "");
  13. const std::string& getBlock(int block) const;
  14. std::string getKeyA() const;
  15. std::string getKeyB() const;
  16. std::string getAccessBits() const;
  17. AccessBitsDbo getAccessBitsDbo() const;
  18. void setBlock(int block, const std::string& data);
  19. void setKeyA(const std::string& key);
  20. void setKeyB(const std::string& key);
  21. void setAccessBits(const std::string& accessBits);
  22. void setAccessBits(const AccessBitsDbo& accessBits);
  23. bool hasBlock(int block) const;
  24. bool hasKeyA() const;
  25. bool hasKeyB() const;
  26. bool hasAccessBits() const;
  27. protected:
  28. std::string _blocks[4];
  29. bool _haveBlocks[4];
  30. bool _hasKeyA;
  31. bool _hasKeyB;
  32. bool _hasAccessBits;
  33. };
  34. #endif //MIFARE_TOOLS_SECTORDBO_H