LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
iso7816location.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_ISO7816LOCATION_HPP
8#define LOGICALACCESS_ISO7816LOCATION_HPP
9
11#include <logicalaccess/plugins/cards/iso7816/lla_cards_iso7816_api.hpp>
12#include <string>
13#include <vector>
14#include <iostream>
15
16namespace logicalaccess
17{
21typedef enum {
22 IFT_NONE = 0x00,
23 IFT_MASTER = 0x01,
28 IFT_CYCLIC = 0x20
30
34class LLA_CARDS_ISO7816_API ISO7816Location : public Location
35{
36 public:
41
45 virtual ~ISO7816Location();
46
52 void serialize(boost::property_tree::ptree &parentNode) override;
53
58 void unSerialize(boost::property_tree::ptree &node) override;
59
64 std::string getDefaultXmlNodeName() const override;
65
70 std::string getCardType() override
71 {
72 return "ISO7816";
73 }
74
80 bool operator==(const Location &location) const override;
81
85 unsigned char dfname[16];
86
91
95 unsigned short fileid;
96
101
105 unsigned short dataObject;
106};
107}
108
109#endif /* LOGICALACCESS_ISO7816LOCATION_H */
A ISO7816 location informations.
Definition: iso7816location.hpp:35
std::string getCardType() override
Get the card type for this location.
Definition: iso7816location.hpp:70
int dfnamelen
The DF name length.
Definition: iso7816location.hpp:90
unsigned short fileid
The file identifier.
Definition: iso7816location.hpp:95
unsigned short dataObject
The data object.
Definition: iso7816location.hpp:105
ISO7816FileType fileType
The file type.
Definition: iso7816location.hpp:100
A location informations.
Definition: location.hpp:19
Location.
Definition: asn1.hpp:9
ISO7816FileType
ISO7816 file type.
Definition: iso7816location.hpp:21
@ IFT_CYCLIC
Definition: iso7816location.hpp:28
@ IFT_NONE
Definition: iso7816location.hpp:22
@ IFT_TRANSPARENT
Definition: iso7816location.hpp:25
@ IFT_DIRECTORY
Definition: iso7816location.hpp:24
@ IFT_LINEAR_FIXED
Definition: iso7816location.hpp:26
@ IFT_MASTER
Definition: iso7816location.hpp:23
@ IFT_LINEAR_VARIABLE
Definition: iso7816location.hpp:27