LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
MifarePlusSL0Chip.hpp
Go to the documentation of this file.
1//
2// Created by xaqq on 8/24/15.
3//
4
5#ifndef LIBLOGICALACCESS_MIFAREPLUSSL0CHIP_HPP
6#define LIBLOGICALACCESS_MIFAREPLUSSL0CHIP_HPP
7
8#include <string>
10
11namespace logicalaccess
12{
13
14class LLA_CARDS_MIFAREPLUS_API MifarePlusSL0Chip : public MifarePlusChip, public Chip
15{
16 public:
17 explicit MifarePlusSL0Chip(const std::string &cardType)
18 : Chip(cardType)
19 {
20 }
21
22 int getSecurityLevel() const override
23 {
24 return 0;
25 }
26
27 const std::string &getCardType() const override
28 {
29 return Chip::getCardType();
30 }
31
32 std::string getGenericCardType() const override
33 {
34 return Chip::getGenericCardType();
35 }
36
37 std::shared_ptr<Commands> getCommands() const override
38 {
39 return Chip::getCommands();
40 }
41
43 {
44 return Chip::getChipIdentifier();
45 }
46
47 std::shared_ptr<CardService> getService(CardServiceType serviceType) override
48 {
49 return Chip::getService(serviceType);
50 }
51};
52
54{
55 public:
57 : MifarePlusSL0Chip("MifarePlus_SL0_2K")
58 {
59 }
60};
61
63{
64 public:
66 : MifarePlusSL0Chip("MifarePlus_SL0_4K")
67 {
68 }
69};
70}
71
72#endif // LIBLOGICALACCESS_MIFAREPLUSSL0CHIP_HPP
The base chip class for all chip. Each chip have is own object and providers according to himself and...
Definition: chip.hpp:37
Definition: mifarepluschip.hpp:23
Definition: MifarePlusSL0Chip.hpp:15
std::string getGenericCardType() const override
Get the generic card type.
Definition: MifarePlusSL0Chip.hpp:32
int getSecurityLevel() const override
Definition: MifarePlusSL0Chip.hpp:22
std::shared_ptr< CardService > getService(CardServiceType serviceType) override
Get a card service for this chip.
Definition: MifarePlusSL0Chip.hpp:47
const std::string & getCardType() const override
Get the card type of the chip.
Definition: MifarePlusSL0Chip.hpp:27
std::shared_ptr< Commands > getCommands() const override
Get the commands.
Definition: MifarePlusSL0Chip.hpp:37
ByteVector getChipIdentifier() const override
Get the chip identifier.
Definition: MifarePlusSL0Chip.hpp:42
MifarePlusSL0Chip(const std::string &cardType)
Definition: MifarePlusSL0Chip.hpp:17
Definition: MifarePlusSL0Chip.hpp:54
MifarePlusSL0_2kChip()
Definition: MifarePlusSL0Chip.hpp:56
Definition: MifarePlusSL0Chip.hpp:63
MifarePlusSL0_4kChip()
Definition: MifarePlusSL0Chip.hpp:65
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
Definition: asn1.hpp:9
CardServiceType
The card services.
Definition: cardservice.hpp:35