LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
mifarelocation.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_MIFARELOCATION_HPP
8#define LOGICALACCESS_MIFARELOCATION_HPP
9
11#include <logicalaccess/plugins/cards/mifare/lla_cards_mifare_api.hpp>
12#include <string>
13#include <vector>
14#include <iostream>
15
16namespace logicalaccess
17{
21class LLA_CARDS_MIFARE_API MifareLocation : public Location
22{
23 public:
28
32 virtual ~MifareLocation();
33
38 void serialize(boost::property_tree::ptree &parentNode) override;
39
44 void unSerialize(boost::property_tree::ptree &node) override;
45
50 std::string getDefaultXmlNodeName() const override;
51
56 std::string getCardType() override
57 {
58 return "Mifare";
59 }
60
66 bool operator==(const Location &location) const override;
67
71 int sector;
72
76 int block;
77
81 int byte_;
82
86 bool useMAD;
87
91 unsigned short aid;
92};
93}
94
95#endif /* LOGICALACCESS_MIFARELOCATION_HPP */
A location informations.
Definition: location.hpp:19
A Mifare location informations.
Definition: mifarelocation.hpp:22
int sector
The sector.
Definition: mifarelocation.hpp:71
bool useMAD
MAD is used ?
Definition: mifarelocation.hpp:86
int block
The block.
Definition: mifarelocation.hpp:76
unsigned short aid
The MAD Application ID.
Definition: mifarelocation.hpp:91
std::string getCardType() override
Get the card type for this location.
Definition: mifarelocation.hpp:56
int byte_
The byte.
Definition: mifarelocation.hpp:81
Location.
Definition: asn1.hpp:9