IDS peak genericC++
v1.7.0
peak_common_node_enums.hpp
Go to the documentation of this file.
1
11
#pragma once
12
13
14
namespace
peak
15
{
16
namespace
core
17
{
18
namespace
nodes
19
{
20
24
enum class
NodeCacheUsePolicy
25
{
26
UseCache
,
27
IgnoreCache
28
};
29
33
enum class
NodeIncrementType
34
{
35
NoIncrement
,
36
FixedIncrement
,
37
ListIncrement
38
};
39
43
enum class
NodeRepresentation
44
{
45
Linear
,
46
Logarithmic
,
47
Boolean
,
48
PureNumber
,
49
HexNumber
,
50
IP4Address
,
51
MACAddress
52
};
53
54
inline
std::string
ToString
(
NodeCacheUsePolicy
entry)
55
{
56
std::string entryString;
57
58
if
(entry ==
NodeCacheUsePolicy::UseCache
)
59
{
60
entryString =
"UseCache"
;
61
}
62
else
if
(entry ==
NodeCacheUsePolicy::IgnoreCache
)
63
{
64
entryString =
"IgnoreCache"
;
65
}
66
67
return
entryString;
68
}
69
70
inline
std::string
ToString
(
NodeIncrementType
entry)
71
{
72
std::string entryString;
73
74
if
(entry ==
NodeIncrementType::NoIncrement
)
75
{
76
entryString =
"NoIncrement"
;
77
}
78
else
if
(entry ==
NodeIncrementType::FixedIncrement
)
79
{
80
entryString =
"FixedIncrement"
;
81
}
82
else
if
(entry ==
NodeIncrementType::ListIncrement
)
83
{
84
entryString =
"ListIncrement"
;
85
}
86
87
return
entryString;
88
}
89
90
inline
std::string
ToString
(
NodeRepresentation
entry)
91
{
92
std::string entryString;
93
94
if
(entry ==
NodeRepresentation::Linear
)
95
{
96
entryString =
"Linear"
;
97
}
98
else
if
(entry ==
NodeRepresentation::Logarithmic
)
99
{
100
entryString =
"Logarithmic"
;
101
}
102
else
if
(entry ==
NodeRepresentation::PureNumber
)
103
{
104
entryString =
"PureNumber"
;
105
}
106
else
if
(entry ==
NodeRepresentation::HexNumber
)
107
{
108
entryString =
"HexNumber"
;
109
}
110
else
if
(entry ==
NodeRepresentation::IP4Address
)
111
{
112
entryString =
"IP4Address"
;
113
}
114
else
if
(entry ==
NodeRepresentation::MACAddress
)
115
{
116
entryString =
"MACAddress"
;
117
}
118
119
return
entryString;
120
}
121
122
}
/* namespace nodes */
123
}
/* namespace core */
124
}
/* namespace peak */
peak::core::nodes::NodeIncrementType::ListIncrement
peak::core::nodes::NodeCacheUsePolicy::UseCache
peak
The "peak" namespace directly contains convenience functionality like the DeviceManager as well as th...
Definition:
peak_dynamic_loader.h:32
peak::core::nodes::NodeRepresentation::IP4Address
peak::core::nodes::NodeCacheUsePolicy
NodeCacheUsePolicy
Definition:
peak_common_node_enums.hpp:24
peak::core::nodes::ToString
std::string ToString(NodeCacheUsePolicy entry)
Definition:
peak_common_node_enums.hpp:54
peak::core::nodes::NodeIncrementType
NodeIncrementType
Definition:
peak_common_node_enums.hpp:33
peak::core::nodes::NodeRepresentation::Linear
peak::core::nodes::NodeIncrementType::NoIncrement
peak::core::nodes::NodeRepresentation::HexNumber
peak::core::nodes::NodeRepresentation
NodeRepresentation
Definition:
peak_common_node_enums.hpp:43
peak::core::nodes::NodeRepresentation::Boolean
peak::core::nodes::NodeCacheUsePolicy::IgnoreCache
peak::core::nodes::NodeRepresentation::PureNumber
peak::core::nodes::NodeRepresentation::Logarithmic
peak::core::nodes::NodeRepresentation::MACAddress
peak::core::nodes::NodeIncrementType::FixedIncrement
peak
node_map
peak_common_node_enums.hpp
Generated on Thu Dec 21 2023 - ©
IDS Imaging Development Systems GmbH