IDS peak genericC++  v1.7.1
reconnect_information.hpp
Go to the documentation of this file.
1 #pragma once
2 
4 
5 #include <cstdint>
6 #include <utility>
7 
8 namespace peak
9 {
10 namespace core
11 {
12 
15 {
16 public:
17  DeviceReconnectInformation() = default;
18 
20  : m_remoteDeviceAcquisitionRunning(cStruct.IsRemoteDeviceAcquisitionRunning != 0)
21  , m_remoteDeviceConfigurationRestored(cStruct.IsRemoteDeviceConfigurationRestored != 0)
22  , m_errorFlags(cStruct.ErrorFlags)
23  {}
24 
25  ~DeviceReconnectInformation() = default;
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 
68 private:
70  bool m_remoteDeviceAcquisitionRunning{};
72  bool m_remoteDeviceConfigurationRestored{};
73 
74 
75  PEAK_DEVICE_RECONNECT_ERROR_FLAGS m_errorFlags{};
76 };
77 
78 } // namespace core
79 } // namespace peak
bool IsSuccessful() const
Definition: reconnect_information.hpp:33
The "peak" namespace directly contains convenience functionality like the DeviceManager as well as th...
Definition: peak_dynamic_loader.h:32
DeviceReconnectInformation & operator=(const DeviceReconnectInformation &)=default
Definition: reconnect_information.hpp:14
DeviceReconnectInformation(const PEAK_DEVICE_RECONNECT_INFORMATION &cStruct)
Definition: reconnect_information.hpp:19
bool IsRemoteDeviceConfigurationRestored() const
Definition: reconnect_information.hpp:50
PEAK_DEVICE_RECONNECT_ERROR_FLAGS GetErrorFlags() const
Definition: reconnect_information.hpp:63
uint32_t PEAK_DEVICE_RECONNECT_ERROR_FLAGS
Definition: peak_backend.h:510
bool IsRemoteDeviceAcquisitionRunning() const
Definition: reconnect_information.hpp:41
Definition: peak_backend.h:513
Definition: peak_backend.h:500