IDS peak genericC++ v1.17.0
Loading...
Searching...
No Matches
peak_common_device_enums.hpp
Go to the documentation of this file.
1
6
7#pragma once
8
10
11namespace peak
12{
13namespace core
14{
15
33
35{
36 std::string entryString;
37
39 {
40 entryString = "ReadWrite";
41 }
42 else if (entry == DeviceAccessStatus::ReadOnly)
43 {
44 entryString = "ReadOnly";
45 }
46 else if (entry == DeviceAccessStatus::NoAccess)
47 {
48 entryString = "NoAccess";
49 }
50 else if (entry == DeviceAccessStatus::Busy)
51 {
52 entryString = "Busy";
53 }
54 else if (entry == DeviceAccessStatus::OpenReadWrite)
55 {
56 entryString = "OpenReadWrite";
57 }
58 else if (entry == DeviceAccessStatus::OpenReadOnly)
59 {
60 entryString = "OpenReadOnly";
61 }
62 else if (entry >= DeviceAccessStatus::Custom)
63 {
64 entryString = "Custom";
65 }
66
67 return entryString;
68}
69
70} /* namespace core */
71} /* namespace peak */
@ Custom
Definition peak_buffer.hpp:54
DeviceAccessStatus
Current accessibility of the device.
Definition peak_common_device_enums.hpp:23
@ OpenReadOnly
Definition peak_common_device_enums.hpp:29
@ ReadOnly
Definition peak_common_device_enums.hpp:25
@ ReadWrite
Definition peak_common_device_enums.hpp:24
@ OpenReadWrite
Definition peak_common_device_enums.hpp:28
@ NoAccess
Definition peak_common_device_enums.hpp:26
@ Custom
Definition peak_common_device_enums.hpp:31
@ Busy
Definition peak_common_device_enums.hpp:27
The "core" namespace contains the direct GenAPI and GenTL wrapper.
Definition peak_buffer.hpp:32
std::string ToString(BufferPayloadType entry)
Definition peak_buffer.hpp:635
The "peak" namespace directly contains convenience functionality like the DeviceManager as well as th...
Definition peak_buffer.hpp:29
#define PEAK_COMMON_NO_DISCARD
Definition peak_common_defines.h:89