LibLogicalAccess  2.5.0
An Open Source RFID Library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
generictagchip.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_GENERICTAGCHIP_HPP
8#define LOGICALACCESS_GENERICTAGCHIP_HPP
9
11#include <logicalaccess/plugins/cards/generictag/lla_cards_generictag_api.hpp>
12#include <string>
13#include <vector>
14#include <iostream>
15
16namespace logicalaccess
17{
21class LLA_CARDS_GENERICTAG_API GenericTagChip : public Chip
22{
23 public:
28 explicit GenericTagChip(std::string cardtype);
29
34
38 virtual ~GenericTagChip();
39
44 std::string getGenericCardType() const override
45 {
46 return CHIP_GENERICTAG;
47 }
48
53 std::shared_ptr<LocationNode> getRootLocationNode() override;
54
55 void setTagIdBitsLength(unsigned int length)
56 {
57 d_tagIdBitsLength = length;
58 }
59
60 unsigned int getTagIdBitsLength() const
61 {
62 return d_tagIdBitsLength;
63 }
64
70 std::shared_ptr<CardService> getService(CardServiceType serviceType) override;
71
72 void setRealChip(std::shared_ptr<Chip> real_chip);
73
74 protected:
78 unsigned int d_tagIdBitsLength;
79
80 std::shared_ptr<Chip> d_real_chip;
81};
82}
83
84#endif
Chip descriptor.
#define CHIP_GENERICTAG
Definition: chip.hpp:20
The base chip class for all chip. Each chip have is own object and providers according to himself and...
Definition: chip.hpp:37
The Generic Tag base chip class.
Definition: generictagchip.hpp:22
std::shared_ptr< Chip > d_real_chip
Definition: generictagchip.hpp:80
unsigned int d_tagIdBitsLength
The tag id length in bits (if 0, the length is the full bytes).
Definition: generictagchip.hpp:78
unsigned int getTagIdBitsLength() const
Definition: generictagchip.hpp:60
void setTagIdBitsLength(unsigned int length)
Definition: generictagchip.hpp:55
std::string getGenericCardType() const override
Get the generic card type.
Definition: generictagchip.hpp:44
Definition: asn1.hpp:9
CardServiceType
The card services.
Definition: cardservice.hpp:35