LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
twicchip.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_TWICCHIP_HPP
8#define LOGICALACCESS_TWICCHIP_HPP
9
12#include <logicalaccess/plugins/cards/twic/lla_cards_twic_api.hpp>
13#include <string>
14#include <vector>
15#include <iostream>
16
17namespace logicalaccess
18{
19#define CHIP_TWIC "Twic"
20
24class LLA_CARDS_TWIC_API TwicChip : public ISO7816Chip
25{
26 public:
30 TwicChip();
31
35 virtual ~TwicChip();
36
41 std::shared_ptr<LocationNode> getRootLocationNode() override;
42
48 std::shared_ptr<CardService> getService(CardServiceType serviceType) override;
49
54 std::shared_ptr<Location> createLocation() const override;
55
60 std::shared_ptr<TwicCommands> getTwicCommands() const
61 {
62 return std::dynamic_pointer_cast<TwicCommands>(getISO7816Commands());
63 }
64};
65}
66
67#endif
The ISO7816 base chip class.
Definition: iso7816chip.hpp:25
The Twic base chip class.
Definition: twicchip.hpp:25
std::shared_ptr< TwicCommands > getTwicCommands() const
Get the Twic commands.
Definition: twicchip.hpp:60
ISO7816 chip.
Definition: asn1.hpp:9
CardServiceType
The card services.
Definition: cardservice.hpp:35
Twic commands.