7#ifndef LOGICALACCESS_MIFARECHIP_HPP
8#define LOGICALACCESS_MIFARECHIP_HPP
12#include <logicalaccess/plugins/cards/mifare/lla_cards_mifare_api.hpp>
19#define CHIP_MIFARE "Mifare"
55 std::shared_ptr<LocationNode> getRootLocationNode()
override;
60 unsigned int getNbSectors()
const;
67 static void addSectorNode(std::shared_ptr<LocationNode> rootNode,
int sector);
75 static void addBlockNode(std::shared_ptr<LocationNode> rootNode,
int sector,
83 std::shared_ptr<CardService> getService(
CardServiceType serviceType)
override;
89 std::shared_ptr<AccessInfo> createAccessInfo()
const override;
95 std::shared_ptr<Location> createLocation()
const override;
103 return std::dynamic_pointer_cast<MifareCommands>(getCommands());
112 MifareChip(std::string cardtype,
unsigned int nbSectors);
The base chip class for all chip. Each chip have is own object and providers according to himself and...
Definition: chip.hpp:37
The Mifare base chip class.
Definition: mifarechip.hpp:25
std::string getGenericCardType() const override
Get the generic card type.
Definition: mifarechip.hpp:46
std::shared_ptr< MifareCommands > getMifareCommands() const
Get the Mifare commands.
Definition: mifarechip.hpp:101
unsigned int d_nbSectors
The number of sectors in the Mifare card.
Definition: mifarechip.hpp:117
#define CHIP_MIFARE
Definition: mifarechip.hpp:19
CardServiceType
The card services.
Definition: cardservice.hpp:35