LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
twicstoragecardservice.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_TWICSTORAGECARDSERVICE_HPP
8#define LOGICALACCESS_TWICSTORAGECARDSERVICE_HPP
9
10#include <logicalaccess/key.hpp>
15
16#include <string>
17#include <vector>
18#include <iostream>
19
20namespace logicalaccess
21{
22#define STORAGECARDSERVICE_TWIC "TwicStorage"
23
27class LLA_CARDS_TWIC_API TwicStorageCardService : public ISO7816StorageCardService
28{
29 public:
34 explicit TwicStorageCardService(std::shared_ptr<Chip> chip);
35
40
41 std::string getCSType() override
42 {
44 }
45
54 ByteVector readData(std::shared_ptr<Location> location,
55 std::shared_ptr<AccessInfo> aiToUse, size_t length,
56 CardBehavior behaviorFlags) override;
57
58 protected:
59 std::shared_ptr<TwicChip> getTwicChip() const
60 {
61 return std::dynamic_pointer_cast<TwicChip>(getISO7816Chip());
62 }
63};
64}
65
66#endif
LLA_CARDS_ISO7816_API void getISO7816Chip(std::shared_ptr< logicalaccess::Chip > *chip)
Definition: libraryentry.cpp:12
The ISO7816 card provider base class.
Definition: iso7816storagecardservice.hpp:21
The Twic storage card service base class.
Definition: twicstoragecardservice.hpp:28
std::shared_ptr< TwicChip > getTwicChip() const
Definition: twicstoragecardservice.hpp:59
std::string getCSType() override
Definition: twicstoragecardservice.hpp:41
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
Twic chip.
Twic commands.
Twic location.
#define STORAGECARDSERVICE_TWIC
Definition: twicstoragecardservice.hpp:22