LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
felicastoragecardservice.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_FELICASTORAGECARDSERVICE_HPP
8#define LOGICALACCESS_FELICASTORAGECARDSERVICE_HPP
9
12
13namespace logicalaccess
14{
15class FeliCaChip;
16
17#define STORAGECARDSERVICE_FELICA "FeliCaStorage"
18
22class LLA_CARDS_FELICA_API FeliCaStorageCardService : public StorageCardService
23{
24 public:
28 explicit FeliCaStorageCardService(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<FeliCaChip> getFeliCaChip() const
86 {
87 return std::dynamic_pointer_cast<FeliCaChip>(getChip());
88 }
89};
90}
91
92#endif
The FeliCa storage card service base class.
Definition: felicastoragecardservice.hpp:23
std::string getCSType() override
Definition: felicastoragecardservice.hpp:35
std::shared_ptr< FeliCaChip > getFeliCaChip() const
Definition: felicastoragecardservice.hpp:85
The base storage card service class for all storage services.
Definition: storagecardservice.hpp:30
FeliCa chip.
#define STORAGECARDSERVICE_FELICA
Definition: felicastoragecardservice.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.