LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
MifarePlusSL3Chip.hpp
Go to the documentation of this file.
1#pragma once
2
4
5namespace logicalaccess
6{
7class MifarePlusSL3Chip : public MifarePlusChip, public Chip
8{
9 public:
10 explicit MifarePlusSL3Chip(int is_2k)
11 : Chip(is_2k ? "MifarePlus_SL3_2K" : "MifarePlus_SL3_4K")
12 {
13 }
14
15 int getSecurityLevel() const override
16 {
17 return 3;
18 }
19
20 const std::string &getCardType() const override
21 {
22 return Chip::getCardType();
23 }
24
25 std::string getGenericCardType() const override
26 {
28 }
29
30 std::shared_ptr<Commands> getCommands() const override
31 {
32 return Chip::getCommands();
33 }
34
36 {
38 }
39
40 std::shared_ptr<CardService> getService(CardServiceType serviceType) override
41 {
42 return Chip::getService(serviceType);
43 }
44};
45}
The base chip class for all chip. Each chip have is own object and providers according to himself and...
Definition: chip.hpp:37
std::shared_ptr< T > getService()
Definition: chip.hpp:167
std::shared_ptr< Commands > getCommands() const override
Get the commands.
Definition: chip.hpp:79
ByteVector getChipIdentifier() const override
Get the chip identifier.
Definition: chip.hpp:97
std::string getGenericCardType() const override
Get the generic card type.
Definition: chip.cpp:32
const std::string & getCardType() const override
Get the card type of the chip.
Definition: chip.cpp:27
Definition: mifarepluschip.hpp:23
Definition: MifarePlusSL3Chip.hpp:8
std::shared_ptr< Commands > getCommands() const override
Get the commands.
Definition: MifarePlusSL3Chip.hpp:30
MifarePlusSL3Chip(int is_2k)
Definition: MifarePlusSL3Chip.hpp:10
ByteVector getChipIdentifier() const override
Get the chip identifier.
Definition: MifarePlusSL3Chip.hpp:35
const std::string & getCardType() const override
Get the card type of the chip.
Definition: MifarePlusSL3Chip.hpp:20
std::shared_ptr< CardService > getService(CardServiceType serviceType) override
Get a card service for this chip.
Definition: MifarePlusSL3Chip.hpp:40
int getSecurityLevel() const override
Definition: MifarePlusSL3Chip.hpp:15
std::string getGenericCardType() const override
Get the generic card type.
Definition: MifarePlusSL3Chip.hpp:25
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
Mifare chip.
Definition: asn1.hpp:9
CardServiceType
The card services.
Definition: cardservice.hpp:35