IDS peak genericC++ v1.16.0
Loading...
Searching...
No Matches
reconnect_information.hpp
Go to the documentation of this file.
1#pragma once
2
4
5#include <cstdint>
6#include <utility>
7
8namespace peak
9{
10namespace core
11{
12
17{
18public:
20
22 : m_remoteDeviceAcquisitionRunning(cStruct.IsRemoteDeviceAcquisitionRunning != 0)
23 , m_remoteDeviceConfigurationRestored(cStruct.IsRemoteDeviceConfigurationRestored != 0)
24 , m_errorFlags(cStruct.ErrorFlags)
25 {}
26
28
33
35 bool IsSuccessful() const
36 {
37 return m_errorFlags == PEAK_DEVICE_RECONNECT_OPERATION_NO_ERROR;
38 }
39
44 {
45 return m_remoteDeviceAcquisitionRunning;
46 }
47
53 {
54 return m_remoteDeviceConfigurationRestored;
55 }
56
66 {
67 return m_errorFlags;
68 }
69
70private:
72 bool m_remoteDeviceAcquisitionRunning{};
74 bool m_remoteDeviceConfigurationRestored{};
75
76
78};
79
80} // namespace core
81} // namespace peak
DeviceReconnectInformation(const DeviceReconnectInformation &)=default
bool IsRemoteDeviceConfigurationRestored() const
Definition reconnect_information.hpp:52
DeviceReconnectInformation(const PEAK_DEVICE_RECONNECT_INFORMATION &cStruct)
Definition reconnect_information.hpp:21
PEAK_DEVICE_RECONNECT_ERROR_FLAGS GetErrorFlags() const
Definition reconnect_information.hpp:65
bool IsSuccessful() const
Definition reconnect_information.hpp:35
DeviceReconnectInformation & operator=(DeviceReconnectInformation &&)=default
bool IsRemoteDeviceAcquisitionRunning() const
Definition reconnect_information.hpp:43
DeviceReconnectInformation & operator=(const DeviceReconnectInformation &)=default
DeviceReconnectInformation(DeviceReconnectInformation &&)=default
The "core" namespace contains the direct GenAPI and GenTL wrapper.
Definition peak_buffer.hpp:34
The "peak" namespace directly contains convenience functionality like the DeviceManager as well as th...
Definition peak_dynamic_loader.h:35
@ PEAK_DEVICE_RECONNECT_OPERATION_NO_ERROR
Definition peak_backend.h:522
uint32_t PEAK_DEVICE_RECONNECT_ERROR_FLAGS
Definition peak_backend.h:532
Definition peak_backend.h:536