LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
twicaccesscontrolcardservice.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_TWICACCESSCONTROLCARDSERVICE_HPP
8#define LOGICALACCESS_TWICACCESSCONTROLCARDSERVICE_HPP
9
12
13namespace logicalaccess
14{
15#define TWIC_ACCESSCONTROL_CARDSERVICE "TwicAccessControl"
16
21{
22 public:
27 explicit TwicAccessControlCardService(std::shared_ptr<Chip> chip);
28
33
34 std::string getCSType() override
35 {
37 }
38
46 std::shared_ptr<Format> readFormat(std::shared_ptr<Format> format,
47 std::shared_ptr<Location> location,
48 std::shared_ptr<AccessInfo> aiToUse) override;
49
58 bool writeFormat(std::shared_ptr<Format> format, std::shared_ptr<Location> location,
59 std::shared_ptr<AccessInfo> aiToUse,
60 std::shared_ptr<AccessInfo> aiToWrite) override;
61
66 FormatList getSupportedFormatList() override;
67
68 protected:
69 std::shared_ptr<TwicChip> getTwicChip() const
70 {
71 return std::dynamic_pointer_cast<TwicChip>(getChip());
72 }
73};
74}
75
76#endif
Access Control Card service.
The base access control card service class for all access control services.
Definition: accesscontrolcardservice.hpp:40
The Twic access control card service class.
Definition: twicaccesscontrolcardservice.hpp:21
std::shared_ptr< TwicChip > getTwicChip() const
Definition: twicaccesscontrolcardservice.hpp:69
std::string getCSType() override
Definition: twicaccesscontrolcardservice.hpp:34
Definition: asn1.hpp:9
std::vector< std::shared_ptr< Format > > FormatList
A format list.
Definition: accesscontrolcardservice.hpp:21
#define TWIC_ACCESSCONTROL_CARDSERVICE
Definition: twicaccesscontrolcardservice.hpp:15
Twic chip.