15#include <peak/dll_interface/peak_dll_interface_util.hpp>
88 int64_t
Value()
const;
97 friend ClassCreator<EnumerationEntryNode>;
122 , m_backendHandle(enumerationEntryNodeHandle)
127 return QueryNumericFromCInterfaceFunction<PEAK_BOOL8>([&](
PEAK_BOOL8* isSelfClearing) {
134 return QueryStringFromCInterfaceFunction([&](
char* symbolicValue,
size_t* symbolicValueSize) {
136 m_backendHandle, symbolicValue, symbolicValueSize);
142 return QueryNumericFromCInterfaceFunction<int64_t>([&](int64_t* value) {
EnumerationEntryNode()=delete
int64_t NumericValue() const
Returns the numeric value of the enum entry.
Definition peak_enumeration_entry_node.hpp:91
EnumerationEntryNode & operator=(const EnumerationEntryNode &other)=delete
std::string StringValue() const
Returns the symbolic value (i.e. name/string value) of the enum entry.
Definition peak_enumeration_entry_node.hpp:74
EnumerationEntryNode(EnumerationEntryNode &&other)=delete
static constexpr auto NodeType
Definition peak_enumeration_entry_node.hpp:39
bool IsSelfClearing() const
Checks whether the node is self clearing.
Definition peak_enumeration_entry_node.hpp:125
~EnumerationEntryNode() override=default
EnumerationEntryNode(const EnumerationEntryNode &other)=delete
EnumerationEntryNode & operator=(EnumerationEntryNode &&other)=delete
std::false_type NodeHasRange
Definition peak_enumeration_entry_node.hpp:41
std::string SymbolicValue() const
Returns the symbolic value (i.e. name/string value) of the enum entry.
Definition peak_enumeration_entry_node.hpp:132
std::string NodeDataType
Definition peak_enumeration_entry_node.hpp:40
int64_t Value() const
Returns the numeric value of the enum entry.
Definition peak_enumeration_entry_node.hpp:140
Represents a GenAPI enumeration node.
Definition peak_enumeration_node.hpp:40
Represents a GenAPI node.
Definition peak_node.hpp:128
@ EnumerationEntry
Definition peak_node.hpp:100
The "nodes" namespace contains all GenAPI node types.
Definition peak_boolean_node.hpp:26
The "core" namespace contains the direct GenAPI and GenTL wrapper.
Definition peak_buffer.hpp:34
The "peak" namespace directly contains convenience functionality like the DeviceManager as well as th...
Definition peak_dynamic_loader.h:35
PEAK_C_API PEAK_EnumerationEntryNode_ToNode(PEAK_ENUMERATION_ENTRY_NODE_HANDLE enumerationEntryNodeHandle, PEAK_NODE_HANDLE *nodeHandle)
Casts the given enumeration entry node to a node.
struct PEAK_NODE * PEAK_NODE_HANDLE
Definition peak_backend.h:429
PEAK_C_API PEAK_EnumerationEntryNode_GetValue(PEAK_ENUMERATION_ENTRY_NODE_HANDLE enumerationEntryNodeHandle, int64_t *value)
Asks the given enumeration entry node for its value.
int8_t PEAK_BOOL8
Definition peak_backend.h:43
PEAK_C_API PEAK_EnumerationEntryNode_GetSymbolicValue(PEAK_ENUMERATION_ENTRY_NODE_HANDLE enumerationEntryNodeHandle, char *symbolicValue, size_t *symbolicValueSize)
Asks the given enumeration entry node for its symbolic value.
struct PEAK_ENUMERATION_ENTRY_NODE * PEAK_ENUMERATION_ENTRY_NODE_HANDLE
Definition peak_backend.h:465
PEAK_C_API PEAK_EnumerationEntryNode_GetIsSelfClearing(PEAK_ENUMERATION_ENTRY_NODE_HANDLE enumerationEntryNodeHandle, PEAK_BOOL8 *isSelfClearing)
Asks the given enumeration entry node whether it is self clearing.
#define PEAK_C_ABI_PREFIX
Definition peak_dll_defines.h:16