Enrollment 28.2.0
Loading...
Searching...
No Matches
IrisCaptureDeviceTypeID.h
Go to the documentation of this file.
1
9
10#pragma once
11#include "enrollment/Export.h"
12#include <ostream>
13
14namespace inno
15{
21 */
23 {
24 public:
29 */
30 explicit IrisCaptureDeviceTypeID(unsigned int i)
31 {
32 if (i > MaxID)
33 {
34 id = UnknownID;
35 }
36 else
37 {
38 id = i;
39 }
40 }
43 */
44 explicit operator unsigned int() const
45 {
46 return id;
47 }
48
49 bool operator==(const IrisCaptureDeviceTypeID& other) const
50 {
51 return id == other.id;
52 }
53
54 IrisCaptureDeviceTypeID() = default;
55 ~IrisCaptureDeviceTypeID() = default;
56 IrisCaptureDeviceTypeID(const IrisCaptureDeviceTypeID&) = default;
57 IrisCaptureDeviceTypeID(IrisCaptureDeviceTypeID&&) = default;
58 IrisCaptureDeviceTypeID& operator=(const IrisCaptureDeviceTypeID&) = default;
59 IrisCaptureDeviceTypeID& operator=(IrisCaptureDeviceTypeID&&) = default;
60
61 private:
62 static constexpr unsigned int MaxID = (1U << 16U) - 1;
63 static constexpr unsigned int UnknownID = 0;
64 unsigned int id = UnknownID;
65 };
66} // namespace inno
The capture device type identifier shall identify the product type that created the BDIR.
Definition IrisCaptureDeviceTypeID.h:22
IrisCaptureDeviceTypeID(unsigned int i)
Construct a new Iris Capture Equipment ID.
Definition IrisCaptureDeviceTypeID.h:29