rfid-key.h 486 B

12345678910111213141516171819202122232425
  1. #pragma once
  2. #include "key-info.h"
  3. #include <array>
  4. class RfidKey {
  5. public:
  6. RfidKey();
  7. ~RfidKey();
  8. void set_type(LfrfidKeyType type);
  9. void set_data(uint8_t* data, const uint8_t data_size);
  10. LfrfidKeyType get_type();
  11. uint8_t* get_data();
  12. const char* get_type_text();
  13. const uint8_t get_type_data_count();
  14. char* get_name();
  15. private:
  16. std::array<uint8_t, LFRFID_KEY_SIZE> data;
  17. LfrfidKeyType type;
  18. char name[LFRFID_KEY_NAME_SIZE + 1];
  19. };