LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
iso7816chip.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_ISO7816CHIP_HPP
8#define LOGICALACCESS_ISO7816CHIP_HPP
9
12#include <logicalaccess/plugins/cards/iso7816/lla_cards_iso7816_api.hpp>
13#include <string>
14#include <vector>
15#include <iostream>
16
17namespace logicalaccess
18{
19#define CHIP_ISO7816 "ISO7816"
20
24class LLA_CARDS_ISO7816_API ISO7816Chip : public Chip
25{
26 public:
30 explicit ISO7816Chip(std::string ct);
31
36
40 virtual ~ISO7816Chip();
41
46 std::string getGenericCardType() const override
47 {
48 return CHIP_ISO7816;
49 }
50
55 std::shared_ptr<LocationNode> getRootLocationNode() override;
56
62 std::shared_ptr<CardService> getService(CardServiceType serviceType) override;
63
68 std::shared_ptr<Location> createLocation() const override;
69
74 std::shared_ptr<ISO7816Commands> getISO7816Commands() const
75 {
76 return std::dynamic_pointer_cast<ISO7816Commands>(getCommands());
77 }
78};
79}
80
81#endif
Chip descriptor.
The base chip class for all chip. Each chip have is own object and providers according to himself and...
Definition: chip.hpp:37
The ISO7816 base chip class.
Definition: iso7816chip.hpp:25
std::string getGenericCardType() const override
Get the generic card type.
Definition: iso7816chip.hpp:46
std::shared_ptr< ISO7816Commands > getISO7816Commands() const
Get the ISO7816 commands.
Definition: iso7816chip.hpp:74
#define CHIP_ISO7816
Definition: iso7816chip.hpp:19
ISO7816 commands. See http://www.cardwerk.com/smartcards/smartcard_standard_ISO7816-4....
Definition: asn1.hpp:9
CardServiceType
The card services.
Definition: cardservice.hpp:35