Enrollment 28.2.0
Loading...
Searching...
No Matches
PrintCaptureDeviceVendorID.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{
23 */
25 {
26 public:
31 */
32 explicit PrintCaptureDeviceVendorID(unsigned int i)
33 {
34 if (i > MaxID)
35 {
36 id = UnknownID;
37 }
38 else
39 {
40 id = i;
41 }
42 }
45 */
46 explicit operator unsigned int() const
47 {
48 return id;
49 }
50
51 bool operator==(const PrintCaptureDeviceVendorID& other) const
52 {
53 return id == other.id;
54 }
55
56 PrintCaptureDeviceVendorID() = default;
57 ~PrintCaptureDeviceVendorID() = default;
58 PrintCaptureDeviceVendorID(const PrintCaptureDeviceVendorID&) = default;
59 PrintCaptureDeviceVendorID(PrintCaptureDeviceVendorID&&) = default;
60 PrintCaptureDeviceVendorID& operator=(const PrintCaptureDeviceVendorID&) = default;
61 PrintCaptureDeviceVendorID& operator=(PrintCaptureDeviceVendorID&&) = default;
62
63 private:
64 static constexpr unsigned int MaxID = (1U << 16U) - 1;
65 static constexpr unsigned int UnknownID = 0;
66 unsigned int id = UnknownID;
67 };
68} // namespace inno
Capture device vendor identifier The capture device vendor identifier shall identify the biometric or...
Definition PrintCaptureDeviceVendorID.h:24
PrintCaptureDeviceVendorID(unsigned int i)
Construct a new Print Capture Equipment ID.
Definition PrintCaptureDeviceVendorID.h:31