LibLogicalAccess  2.5.0
An Open Source RFID Library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
elatecreaderunit.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_ELATECREADERUNIT_HPP
8#define LOGICALACCESS_ELATECREADERUNIT_HPP
9
13#include <logicalaccess/plugins/readers/elatec/lla_readers_elatec_api.hpp>
14
15namespace logicalaccess
16{
17class Profile;
18class ElatecReaderCardAdapter;
19class ElatecReaderProvider;
20
25class LLA_READERS_ELATEC_API ElatecReaderUnit : public ReaderUnit
26{
27 public:
32
36 virtual ~ElatecReaderUnit();
37
42 std::string getName() const override;
43
48 std::string getConnectedName() override;
49
54 void setCardType(std::string cardType) override;
55
65 bool waitInsertion(unsigned int maxwait) override;
66
75 bool waitRemoval(unsigned int maxwait) override;
76
82 std::shared_ptr<Chip> createChip(std::string type) override;
83
88 std::shared_ptr<Chip> getSingleChip() override;
89
94 std::vector<std::shared_ptr<Chip>> getChipList() override;
95
100 std::shared_ptr<Chip> getChipInAir();
101
106 virtual std::shared_ptr<ElatecReaderCardAdapter> getDefaultElatecReaderCardAdapter();
107
115 bool connect() override;
116
123 void disconnect() override;
124
129 bool isConnected() override;
130
135 bool connectToReader() override;
136
140 void disconnectFromReader() override;
141
146 ByteVector getPingCommand() const override;
147
152 std::string getReaderSerialNumber() override;
153
158 void serialize(boost::property_tree::ptree &parentNode) override;
159
164 void unSerialize(boost::property_tree::ptree &node) override;
165
170 std::shared_ptr<ElatecReaderUnitConfiguration> getElatecConfiguration()
171 {
172 return std::dynamic_pointer_cast<ElatecReaderUnitConfiguration>(
173 getConfiguration());
174 }
175
180 std::shared_ptr<ElatecReaderProvider> getElatecReaderProvider() const;
181};
182}
183
184#endif
The Elatec reader unit class. The reader must be setup in Transparent mode (USB: Transparent Virtual ...
Definition: elatecreaderunit.hpp:26
std::shared_ptr< ElatecReaderUnitConfiguration > getElatecConfiguration()
Get the Elatec reader unit configuration.
Definition: elatecreaderunit.hpp:170
The card types.
Definition: readerunit.hpp:42
Elatec Reader unit configuration.
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
Definition: asn1.hpp:9
Reader unit.
A serial port class.