15#include <peak/dll_interface/peak_dll_interface_util.hpp>
70 std::string
Unit()
const;
79 friend ClassCreator<IntegerNode>;
102 , m_backendHandle(integerNodeHandle)
107 return QueryNumericFromCInterfaceFunction<int64_t>([&](int64_t* minimum) {
114 return QueryNumericFromCInterfaceFunction<int64_t>([&](int64_t* maximum) {
121 return QueryNumericFromCInterfaceFunction<int64_t>([&](int64_t* increment) {
128 return static_cast<NodeIncrementType>(QueryNumericFromCInterfaceFunction<PEAK_NODE_INCREMENT_TYPE>(
136 return QueryNumericArrayFromCInterfaceFunction<int64_t>([&](int64_t* validValues,
size_t* validValuesSize) {
143 return static_cast<NodeRepresentation>(QueryNumericFromCInterfaceFunction<PEAK_NODE_REPRESENTATION>(
151 return QueryStringFromCInterfaceFunction([&](
char* unit,
size_t* unitSize) {
158 return QueryNumericFromCInterfaceFunction<int64_t>([&](int64_t* value) {
166 CallAndCheckCInterfaceFunction(
IntegerNode & operator=(const IntegerNode &other)=delete
IntegerNode(const IntegerNode &other)=delete
int64_t Minimum() const
Returns the minimum.
Definition peak_integer_node.hpp:105
int64_t Maximum() const
Returns the maximum.
Definition peak_integer_node.hpp:112
int64_t Increment() const
Returns the increment.
Definition peak_integer_node.hpp:119
int64_t NodeDataType
Definition peak_integer_node.hpp:41
int64_t Value(NodeCacheUsePolicy cacheUsePolicy=NodeCacheUsePolicy::UseCache) const
Returns the value.
Definition peak_integer_node.hpp:156
IntegerNode & operator=(IntegerNode &&other)=delete
static constexpr auto NodeType
Definition peak_integer_node.hpp:40
NodeIncrementType IncrementType() const
Returns the increment type.
Definition peak_integer_node.hpp:126
NodeRepresentation Representation() const
Returns the representation.
Definition peak_integer_node.hpp:141
~IntegerNode() override=default
IntegerNode(IntegerNode &&other)=delete
std::true_type NodeHasRange
Definition peak_integer_node.hpp:42
std::string Unit() const
Returns the unit.
Definition peak_integer_node.hpp:149
void SetValue(int64_t value)
Sets the given value.
Definition peak_integer_node.hpp:164
std::vector< int64_t > ValidValues() const
Returns the valid values.
Definition peak_integer_node.hpp:134
NodeIncrementType
Definition peak_common_node_enums.hpp:36
NodeCacheUsePolicy
Definition peak_common_node_enums.hpp:26
NodeRepresentation
Definition peak_common_node_enums.hpp:47
@ Integer
Definition peak_node.hpp:92
@ UseCache
Definition peak_common_node_enums.hpp:27
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:33
PEAK_C_API PEAK_IntegerNode_GetRepresentation(PEAK_INTEGER_NODE_HANDLE integerNodeHandle, PEAK_NODE_REPRESENTATION *representation)
Asks the given integer node for its representation.
PEAK_C_API PEAK_IntegerNode_GetMinimum(PEAK_INTEGER_NODE_HANDLE integerNodeHandle, int64_t *minimum)
Asks the given integer node for its minimum.
int32_t PEAK_NODE_INCREMENT_TYPE
Definition peak_backend.h:260
struct PEAK_NODE * PEAK_NODE_HANDLE
Definition peak_backend.h:429
int32_t PEAK_NODE_REPRESENTATION
Definition peak_backend.h:281
PEAK_C_API PEAK_IntegerNode_GetMaximum(PEAK_INTEGER_NODE_HANDLE integerNodeHandle, int64_t *maximum)
Asks the given integer node for its maximum.
PEAK_C_API PEAK_IntegerNode_GetValue(PEAK_INTEGER_NODE_HANDLE integerNodeHandle, PEAK_NODE_CACHE_USE_POLICY cacheUsePolicy, int64_t *value)
Asks the given integer node for its value.
PEAK_C_API PEAK_IntegerNode_ToNode(PEAK_INTEGER_NODE_HANDLE integerNodeHandle, PEAK_NODE_HANDLE *nodeHandle)
Casts the given integer node to a node.
int32_t PEAK_NODE_CACHE_USE_POLICY
Definition peak_backend.h:242
PEAK_C_API PEAK_IntegerNode_GetValidValues(PEAK_INTEGER_NODE_HANDLE integerNodeHandle, int64_t *validValues, size_t *validValuesSize)
Asks the given integer node for its valid values.
PEAK_C_API PEAK_IntegerNode_SetValue(PEAK_INTEGER_NODE_HANDLE integerNodeHandle, int64_t value)
Tells the given integer node to set the given value.
PEAK_C_API PEAK_IntegerNode_GetIncrement(PEAK_INTEGER_NODE_HANDLE integerNodeHandle, int64_t *increment)
Asks the given integer node for its increment.
PEAK_C_API PEAK_IntegerNode_GetIncrementType(PEAK_INTEGER_NODE_HANDLE integerNodeHandle, PEAK_NODE_INCREMENT_TYPE *incrementType)
Asks the given integer node for its increment type.
PEAK_C_API PEAK_IntegerNode_GetUnit(PEAK_INTEGER_NODE_HANDLE integerNodeHandle, char *unit, size_t *unitSize)
Asks the given integer node for its unit.
struct PEAK_INTEGER_NODE * PEAK_INTEGER_NODE_HANDLE
Definition peak_backend.h:433
#define PEAK_C_ABI_PREFIX
Definition peak_dll_defines.h:16