CVB++ 15.0
vin_connection_information.hpp
1#pragma once
2
3#include "../global.hpp"
4#include "../string.hpp"
5
6#include "driver.hpp"
7
8namespace Cvb
9{
10
11 CVB_BEGIN_INLINE_NS
12
13 namespace Driver
14 {
15
17
23 class VinConnectionInformation
24 {
25 friend VinDevice;
26
27 public:
28 VinConnectionInformation() = default;
29
31
37 int CurrentPort() const noexcept
38 {
39 return currentPort_;
40 }
41
43
49 int CurrentBoard() const noexcept
50 {
51 return currentBoard_;
52 }
53
55
59 String AccessToken() const noexcept
60 {
61 return accessToken_;
62 }
63
64 private:
65 VinConnectionInformation(int currentPort, int currentBoard) noexcept
66 : currentPort_(currentPort)
67 , currentBoard_(currentBoard)
68 {
69 }
70
71 explicit VinConnectionInformation(const String accessToken) noexcept
72 : accessToken_(accessToken)
73 {
74 }
75
76 int currentPort_ = -1;
77 int currentBoard_ = -1;
78 String accessToken_;
79 };
80
81 } // namespace Driver
82
84
85 CVB_END_INLINE_NS
86
87} // namespace Cvb
Contains the board and port information of a device or its access token.
Definition vin_connection_information.hpp:24
int CurrentPort() const noexcept
Gets the camera port number where the device is located.
Definition vin_connection_information.hpp:37
String AccessToken() const noexcept
Gets the device access token if available.
Definition vin_connection_information.hpp:59
int CurrentBoard() const noexcept
Gets the board number where the device is located.
Definition vin_connection_information.hpp:49
Namespace for driver or device related operations.
Definition decl_composite.hpp:27
@ String
String value.
Definition driver.hpp:368
Root namespace for the Image Manager interface.
Definition c_bayer_to_rgb.h:17
std::string String
String for wide characters or unicode characters.
Definition string.hpp:49