LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
cps3chip.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_CPS3CHIP_HPP
8#define LOGICALACCESS_CPS3CHIP_HPP
9
12
13#include <string>
14#include <vector>
15#include <iostream>
16
17namespace logicalaccess
18{
19#define CHIP_CPS3 "CPS3"
20
24class LLA_CARDS_CPS3_API CPS3Chip : public ISO7816Chip
25{
26 public:
30 explicit CPS3Chip(std::string ct);
31
35 CPS3Chip();
36
40 virtual ~CPS3Chip();
41
46 std::string getGenericCardType() const override
47 {
48 return CHIP_CPS3;
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<CPS3Commands> getCPS3Commands() const
75 {
76 return std::dynamic_pointer_cast<CPS3Commands>(getCommands());
77 }
78};
79}
80
81#endif
The CPS3 base chip class.
Definition: cps3chip.hpp:25
std::shared_ptr< CPS3Commands > getCPS3Commands() const
Get the CPS3 card provider for I/O access.
Definition: cps3chip.hpp:74
std::string getGenericCardType() const override
Get the generic card type.
Definition: cps3chip.hpp:46
The ISO7816 base chip class.
Definition: iso7816chip.hpp:25
#define CHIP_CPS3
Definition: cps3chip.hpp:19
CPS3 commands.
ISO7816 chip.
Definition: asn1.hpp:9
CardServiceType
The card services.
Definition: cardservice.hpp:35