IDS peak genericC++ v1.11.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
35
36inline std::string ToString(DeviceAccessStatus entry)
37{
38 std::string entryString;
39
41 {
42 entryString = "ReadWrite";
43 }
44 else if (entry == DeviceAccessStatus::ReadOnly)
45 {
46 entryString = "ReadOnly";
47 }
48 else if (entry == DeviceAccessStatus::NoAccess)
49 {
50 entryString = "NoAccess";
51 }
52 else if (entry == DeviceAccessStatus::Busy)
53 {
54 entryString = "Busy";
55 }
56 else if (entry == DeviceAccessStatus::OpenReadWrite)
57 {
58 entryString = "OpenReadWrite";
59 }
60 else if (entry == DeviceAccessStatus::OpenReadOnly)
61 {
62 entryString = "OpenReadOnly";
63 }
64 else if (entry >= DeviceAccessStatus::Custom)
65 {
66 entryString = "Custom";
67 }
68
69 return entryString;
70}
71
72} /* namespace core */
73} /* namespace peak */
The "core" namespace contains the direct GenAPI and GenTL wrapper.
Definition peak_buffer.hpp:31
std::string ToString(BufferPayloadType entry)
Definition peak_buffer.hpp:519
@ Custom
Definition peak_buffer.hpp:52
DeviceAccessStatus
Current accessibility of the device.
Definition peak_common_device_enums.hpp:25
@ OpenReadOnly
Definition peak_common_device_enums.hpp:31
@ ReadOnly
Definition peak_common_device_enums.hpp:27
@ ReadWrite
Definition peak_common_device_enums.hpp:26
@ OpenReadWrite
Definition peak_common_device_enums.hpp:30
@ NoAccess
Definition peak_common_device_enums.hpp:28
@ Custom
Definition peak_common_device_enums.hpp:33
@ Busy
Definition peak_common_device_enums.hpp:29
The "peak" namespace directly contains convenience functionality like the DeviceManager as well as th...
Definition peak_dynamic_loader.h:33