IDS peak genericC++ v1.17.0
Loading...
Searching...
No Matches
reconnect_information.hpp
Go to the documentation of this file.
1#pragma once
2
4
6
7#include <cstdint>
8#include <utility>
9
10namespace peak
11{
12namespace core
13{
14
19{
20public:
22
24 : m_remoteDeviceAcquisitionRunning(cStruct.IsRemoteDeviceAcquisitionRunning != 0)
25 , m_remoteDeviceConfigurationRestored(cStruct.IsRemoteDeviceConfigurationRestored != 0)
26 , m_errorFlags(cStruct.ErrorFlags)
27 {}
28
30
35
38 {
39 return m_errorFlags == PEAK_DEVICE_RECONNECT_OPERATION_NO_ERROR;
40 }
41
46 {
47 return m_remoteDeviceAcquisitionRunning;
48 }
49
55 {
56 return m_remoteDeviceConfigurationRestored;
57 }
58
71
72private:
74 bool m_remoteDeviceAcquisitionRunning{};
76 bool m_remoteDeviceConfigurationRestored{};
77
78
80};
81
82} // namespace core
83} // namespace peak
DeviceReconnectInformation(const DeviceReconnectInformation &)=default
PEAK_COMMON_NO_DISCARD bool IsRemoteDeviceAcquisitionRunning() const
Definition reconnect_information.hpp:45
DeviceReconnectInformation(const PEAK_DEVICE_RECONNECT_INFORMATION &cStruct)
Definition reconnect_information.hpp:23
PEAK_COMMON_NO_DISCARD bool IsSuccessful() const
Definition reconnect_information.hpp:37
DeviceReconnectInformation & operator=(DeviceReconnectInformation &&)=default
PEAK_COMMON_NO_DISCARD bool IsRemoteDeviceConfigurationRestored() const
Definition reconnect_information.hpp:54
DeviceReconnectInformation & operator=(const DeviceReconnectInformation &)=default
PEAK_COMMON_NO_DISCARD PEAK_DEVICE_RECONNECT_ERROR_FLAGS GetErrorFlags() const
Definition reconnect_information.hpp:67
DeviceReconnectInformation(DeviceReconnectInformation &&)=default
The "core" namespace contains the direct GenAPI and GenTL wrapper.
Definition peak_buffer.hpp:32
The "peak" namespace directly contains convenience functionality like the DeviceManager as well as th...
Definition peak_buffer.hpp:29
@ PEAK_DEVICE_RECONNECT_OPERATION_NO_ERROR
Definition peak_backend.h:520
uint32_t PEAK_DEVICE_RECONNECT_ERROR_FLAGS
Definition peak_backend.h:530
#define PEAK_COMMON_NO_DISCARD
Definition peak_common_defines.h:89
Definition peak_backend.h:534