LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
MifarePlusSL1Chip.hpp
Go to the documentation of this file.
1//
2// Created by xaqq on 7/1/15.
3//
4
5#ifndef LIBLOGICALACCESS_MIFAREPLUSSL1CHIP_H
6#define LIBLOGICALACCESS_MIFAREPLUSSL1CHIP_H
7
8
11
12namespace logicalaccess
13{
14
21class LLA_CARDS_MIFAREPLUS_API MifarePlusSL1Chip : public MifareChip
22#ifndef SWIG
23 ,
24 public MifarePlusChip
25#endif
26{
27 public:
28 MifarePlusSL1Chip(const std::string &cardType, int nb_sectors);
29
30 int getSecurityLevel() const override;
31
32 std::shared_ptr<AccessInfo> createAccessInfo() const override;
33
34 const std::string &getCardType() const override
35 {
36 return MifareChip::getCardType();
37 }
38
39 std::string getGenericCardType() const override
40 {
41 return MifareChip::getGenericCardType();
42 }
43
44 std::shared_ptr<Commands> getCommands() const override
45 {
46 return MifareChip::getCommands();
47 }
48
50 {
51 return MifareChip::getChipIdentifier();
52 }
53
54 std::shared_ptr<CardService> getService(CardServiceType serviceType) override;
55};
56
57class LLA_CARDS_MIFAREPLUS_API MifarePlusSL1_2kChip : public MifarePlusSL1Chip
58{
59 public:
61};
62
63class LLA_CARDS_MIFAREPLUS_API MifarePlusSL1_4kChip : public MifarePlusSL1Chip
64{
65 public:
67
72 std::shared_ptr<LocationNode> getRootLocationNode() override;
73};
74}
75
76#endif // LIBLOGICALACCESS_MIFAREPLUSSL1CHIP_H
The Mifare base chip class.
Definition: mifarechip.hpp:25
Definition: mifarepluschip.hpp:23
Definition: MifarePlusSL1Chip.hpp:26
ByteVector getChipIdentifier() const override
Get the chip identifier.
Definition: MifarePlusSL1Chip.hpp:49
std::string getGenericCardType() const override
Get the generic card type.
Definition: MifarePlusSL1Chip.hpp:39
const std::string & getCardType() const override
Get the card type of the chip.
Definition: MifarePlusSL1Chip.hpp:34
std::shared_ptr< Commands > getCommands() const override
Get the commands.
Definition: MifarePlusSL1Chip.hpp:44
Definition: MifarePlusSL1Chip.hpp:58
Definition: MifarePlusSL1Chip.hpp:64
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
Mifare chip.
Definition: asn1.hpp:9
CardServiceType
The card services.
Definition: cardservice.hpp:35