LibLogicalAccess  2.5.0
An Open Source RFID Library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
iso15693storagecardservice.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_ISO15693STORAGECARDSERVICE_HPP
8#define LOGICALACCESS_ISO15693STORAGECARDSERVICE_HPP
9
12
13namespace logicalaccess
14{
15class ISO15693Chip;
16
17#define STORAGECARDSERVICE_ISO15693 "ISO15693Storage"
18
22class LLA_CARDS_ISO15693_API ISO15693StorageCardService : public StorageCardService
23{
24 public:
28 explicit ISO15693StorageCardService(std::shared_ptr<Chip> chip);
29
34
35 std::string getCSType() override
36 {
38 }
39
45 void erase(std::shared_ptr<Location> location,
46 std::shared_ptr<AccessInfo> aiToUse) override;
47
56 void writeData(std::shared_ptr<Location> location,
57 std::shared_ptr<AccessInfo> aiToUse,
58 std::shared_ptr<AccessInfo> aiToWrite, const ByteVector &data,
59 CardBehavior behaviorFlags) override;
60
69 ByteVector readData(std::shared_ptr<Location> location,
70 std::shared_ptr<AccessInfo> aiToUse, size_t dataLength,
71 CardBehavior behaviorFlags) override;
72
81 ByteVector readDataHeader(std::shared_ptr<Location> location,
82 std::shared_ptr<AccessInfo> aiToUse) override;
83
84 protected:
85 std::shared_ptr<ISO15693Chip> getISO15693Chip() const
86 {
87 return std::dynamic_pointer_cast<ISO15693Chip>(getChip());
88 }
89};
90}
91
92#endif
The ISO15693 storage card service base class.
Definition: iso15693storagecardservice.hpp:23
std::string getCSType() override
Definition: iso15693storagecardservice.hpp:35
std::shared_ptr< ISO15693Chip > getISO15693Chip() const
Definition: iso15693storagecardservice.hpp:85
The base storage card service class for all storage services.
Definition: storagecardservice.hpp:30
ISO15693 chip.
#define STORAGECARDSERVICE_ISO15693
Definition: iso15693storagecardservice.hpp:17
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
Definition: asn1.hpp:9
CardBehavior
The card behaviors.
Definition: storagecardservice.hpp:20
Storage Card service.