IDS peak genericC++ v1.9.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
15{
16public:
18
20 : m_remoteDeviceAcquisitionRunning(cStruct.IsRemoteDeviceAcquisitionRunning != 0)
21 , m_remoteDeviceConfigurationRestored(cStruct.IsRemoteDeviceConfigurationRestored != 0)
22 , m_errorFlags(cStruct.ErrorFlags)
23 {}
24
26
31
33 bool IsSuccessful() const
34 {
35 return m_errorFlags == PEAK_DEVICE_RECONNECT_OPERATION_NO_ERROR;
36 }
37
42 {
43 return m_remoteDeviceAcquisitionRunning;
44 }
45
51 {
52 return m_remoteDeviceConfigurationRestored;
53 }
54
64 {
65 return m_errorFlags;
66 }
67
68private:
70 bool m_remoteDeviceAcquisitionRunning{};
72 bool m_remoteDeviceConfigurationRestored{};
73
74
76};
77
78} // namespace core
79} // namespace peak
Definition reconnect_information.hpp:15
DeviceReconnectInformation(const DeviceReconnectInformation &)=default
bool IsRemoteDeviceConfigurationRestored() const
Definition reconnect_information.hpp:50
DeviceReconnectInformation(const PEAK_DEVICE_RECONNECT_INFORMATION &cStruct)
Definition reconnect_information.hpp:19
PEAK_DEVICE_RECONNECT_ERROR_FLAGS GetErrorFlags() const
Definition reconnect_information.hpp:63
bool IsSuccessful() const
Definition reconnect_information.hpp:33
DeviceReconnectInformation & operator=(DeviceReconnectInformation &&)=default
bool IsRemoteDeviceAcquisitionRunning() const
Definition reconnect_information.hpp:41
DeviceReconnectInformation & operator=(const DeviceReconnectInformation &)=default
DeviceReconnectInformation(DeviceReconnectInformation &&)=default
The "peak" namespace directly contains convenience functionality like the DeviceManager as well as th...
Definition peak_dynamic_loader.h:33
@ PEAK_DEVICE_RECONNECT_OPERATION_NO_ERROR
Definition peak_backend.h:501
uint32_t PEAK_DEVICE_RECONNECT_ERROR_FLAGS
Definition peak_backend.h:511
Definition peak_backend.h:515