LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
cps3storagecardservice.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_CPS3STORAGECARDSERVICE_HPP
8#define LOGICALACCESS_CPS3STORAGECARDSERVICE_HPP
9
12
13namespace logicalaccess
14{
15
16#define STORAGE_CARDSERVICE_CPS3 "CPS3Storage"
17
21class LLA_CARDS_CPS3_API CPS3StorageCardService : public ISO7816StorageCardService
22{
23 public:
27 explicit CPS3StorageCardService(std::shared_ptr<Chip> chip);
28
33
34 std::string getCSType() override
35 {
37 }
38
46 ByteVector readData(std::shared_ptr<Location> location,
47 std::shared_ptr<AccessInfo> aiToUse, size_t dataLength,
48 CardBehavior behaviorFlags) override;
49
50 protected:
51 std::shared_ptr<CPS3Chip> getCPS3Chip() const
52 {
53 return std::dynamic_pointer_cast<CPS3Chip>(getISO7816Chip());
54 }
55};
56}
57
58#endif
LLA_CARDS_ISO7816_API void getISO7816Chip(std::shared_ptr< logicalaccess::Chip > *chip)
Definition: libraryentry.cpp:12
The CPS3 storage card service base class.
Definition: cps3storagecardservice.hpp:22
std::string getCSType() override
Definition: cps3storagecardservice.hpp:34
std::shared_ptr< CPS3Chip > getCPS3Chip() const
Definition: cps3storagecardservice.hpp:51
The ISO7816 card provider base class.
Definition: iso7816storagecardservice.hpp:21
CPS3 chip.
#define STORAGE_CARDSERVICE_CPS3
Definition: cps3storagecardservice.hpp:16
ISO7816 storage card service.
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
Definition: asn1.hpp:9
CardBehavior
The card behaviors.
Definition: storagecardservice.hpp:20