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