LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
generictagaccesscontrolcardservice.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_GENERICTAGACCESSCONTROLCARDSERVICE_HPP
8#define LOGICALACCESS_GENERICTAGACCESSCONTROLCARDSERVICE_HPP
9
12
13namespace logicalaccess
14{
15class GenericTagCardProvider;
16
17#define GENERICACCESSCONTROLCARDSERVICE "GenericTagAccessControl"
18
22class LLA_CARDS_GENERICTAG_API GenericTagAccessControlCardService
24{
25 public:
30 explicit GenericTagAccessControlCardService(std::shared_ptr<Chip> chip);
31
36
37 std::string getCSType() override
38 {
40 }
41
49 std::shared_ptr<Format> readFormat(std::shared_ptr<Format> format,
50 std::shared_ptr<Location> location,
51 std::shared_ptr<AccessInfo> aiToUse) override;
52
61 bool writeFormat(std::shared_ptr<Format> format, std::shared_ptr<Location> location,
62 std::shared_ptr<AccessInfo> aiToUse,
63 std::shared_ptr<AccessInfo> aiToWrite) override;
64
65 std::shared_ptr<GenericTagChip> getGenericTagChip() const
66 {
67 return std::dynamic_pointer_cast<GenericTagChip>(getChip());
68 }
69};
70}
71
72#endif
Access Control Card service.
The base access control card service class for all access control services.
Definition: accesscontrolcardservice.hpp:40
The GenericTag access control card service class.
Definition: generictagaccesscontrolcardservice.hpp:24
std::string getCSType() override
Definition: generictagaccesscontrolcardservice.hpp:37
std::shared_ptr< GenericTagChip > getGenericTagChip() const
Definition: generictagaccesscontrolcardservice.hpp:65
#define GENERICACCESSCONTROLCARDSERVICE
Definition: generictagaccesscontrolcardservice.hpp:17
Generic tag chip.
Definition: asn1.hpp:9