LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
gunneboreaderunit.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_GUNNEBOREADERUNIT_HPP
8#define LOGICALACCESS_GUNNEBOREADERUNIT_HPP
9
12#include <logicalaccess/plugins/readers/gunnebo/lla_readers_gunnebo_api.hpp>
13
14namespace logicalaccess
15{
16class Profile;
17class GunneboReaderCardAdapter;
18class GunneboReaderProvider;
19
23class LLA_READERS_GUNNEBO_API GunneboReaderUnit : public ReaderUnit
24{
25 public:
30
34 virtual ~GunneboReaderUnit();
35
40 std::string getName() const override;
41
46 std::string getConnectedName() override;
47
52 void setCardType(std::string cardType) override;
53
63 bool waitInsertion(unsigned int maxwait) override;
64
73 bool waitRemoval(unsigned int maxwait) override;
74
80 std::shared_ptr<Chip> createChip(std::string type) override;
81
86 std::shared_ptr<Chip> getSingleChip() override;
87
92 std::vector<std::shared_ptr<Chip>> getChipList() override;
93
98 virtual std::shared_ptr<GunneboReaderCardAdapter>
99 getDefaultGunneboReaderCardAdapter();
100
108 bool connect() override;
109
116 void disconnect() override;
117
122 bool isConnected() override;
123
128 bool connectToReader() override;
129
133 void disconnectFromReader() override;
134
139 ByteVector getPingCommand() const override;
140
145 std::string getReaderSerialNumber() override;
146
151 void serialize(boost::property_tree::ptree &parentNode) override;
152
157 void unSerialize(boost::property_tree::ptree &node) override;
158
163 std::shared_ptr<GunneboReaderUnitConfiguration> getGunneboConfiguration()
164 {
165 return std::dynamic_pointer_cast<GunneboReaderUnitConfiguration>(
166 getConfiguration());
167 }
168
173 std::shared_ptr<GunneboReaderProvider> getGunneboReaderProvider() const;
174
179 void setConfiguration(std::shared_ptr<ReaderUnitConfiguration> config) override;
180
181 private:
187 ByteVector processCardId(ByteVector &rawSerialData) const;
188
189 protected:
195};
196}
197
198#endif
The Gunnebo reader unit class.
Definition: gunneboreaderunit.hpp:24
std::shared_ptr< GunneboReaderUnitConfiguration > getGunneboConfiguration()
Get the Gunnebo reader unit configuration.
Definition: gunneboreaderunit.hpp:163
ByteVector removalIdentifier
The new identifier that will be used for the next waitInsertion after the waitRemoval.
Definition: gunneboreaderunit.hpp:194
The card types.
Definition: readerunit.hpp:42
Gunnebo Reader unit configuration.
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
Definition: asn1.hpp:9
Reader unit.