12#include <peak/dll_interface/peak_dll_interface_util.hpp>
105 friend ClassCreator<IntegerNode>;
128 , m_backendHandle(integerNodeHandle)
133 return QueryNumericFromCInterfaceFunction<int64_t>([&](int64_t* minimum) {
140 return QueryNumericFromCInterfaceFunction<int64_t>([&](int64_t* maximum) {
147 return QueryNumericFromCInterfaceFunction<int64_t>([&](int64_t* increment) {
154 return static_cast<NodeIncrementType>(QueryNumericFromCInterfaceFunction<PEAK_NODE_INCREMENT_TYPE>(
172 return QueryNumericArrayFromCInterfaceFunction<int64_t>([&](int64_t* validValues,
size_t* validValuesSize) {
179 return static_cast<NodeRepresentation>(QueryNumericFromCInterfaceFunction<PEAK_NODE_REPRESENTATION>(
187 return QueryStringFromCInterfaceFunction([&](
char* unit,
size_t* unitSize) {
194 return QueryNumericFromCInterfaceFunction<int64_t>([&](int64_t* value) {
202 CallAndCheckCInterfaceFunction(
IntegerNode & operator=(const IntegerNode &other)=delete
IntegerNode(const IntegerNode &other)=delete
PEAK_COMMON_NO_DISCARD int64_t Minimum() const
Returns the minimum.
Definition peak_integer_node.hpp:131
PEAK_COMMON_NO_DISCARD int64_t Maximum() const
Returns the maximum.
Definition peak_integer_node.hpp:138
PEAK_COMMON_NO_DISCARD int64_t Increment() const
Returns the increment.
Definition peak_integer_node.hpp:145
int64_t NodeDataType
Definition peak_integer_node.hpp:41
PEAK_COMMON_NO_DISCARD int64_t Value(NodeCacheUsePolicy cacheUsePolicy=NodeCacheUsePolicy::UseCache) const
Returns the value.
Definition peak_integer_node.hpp:192
IntegerNode & operator=(IntegerNode &&other)=delete
PEAK_COMMON_NO_DISCARD peak::common::Interval64 Interval() const
Returns the interval of value values for this node.
Definition peak_integer_node.hpp:165
static constexpr auto NodeType
Definition peak_integer_node.hpp:40
PEAK_COMMON_NO_DISCARD NodeIncrementType IncrementType() const
Returns the increment type.
Definition peak_integer_node.hpp:152
PEAK_COMMON_NO_DISCARD NodeRepresentation Representation() const
Returns the representation.
Definition peak_integer_node.hpp:177
~IntegerNode() override=default
IntegerNode(IntegerNode &&other)=delete
PEAK_COMMON_NO_DISCARD peak::common::Range64 Range() const
Returns the range of value values for this node.
Definition peak_integer_node.hpp:160
std::true_type NodeHasRange
Definition peak_integer_node.hpp:42
PEAK_COMMON_NO_DISCARD std::string Unit() const
Returns the unit.
Definition peak_integer_node.hpp:185
void SetValue(int64_t value)
Sets the given value.
Definition peak_integer_node.hpp:200
PEAK_COMMON_NO_DISCARD std::vector< int64_t > ValidValues() const
Returns the valid values.
Definition peak_integer_node.hpp:170
detail::IntervalT< int64_t > Interval64
Interval with signed 64-bit integer boundaries.
Definition peak_common_interval.hpp:258
detail::RangeT< int64_t > Range64
Alias for a range of 64-bit signed integers.
Definition peak_common_range.hpp:252
NodeIncrementType
Definition peak_common_node_enums.hpp:48
NodeCacheUsePolicy
Defines how node value access should interact with the internal cache.
Definition peak_common_node_enums.hpp:36
NodeRepresentation
Definition peak_common_node_enums.hpp:59
@ FixedIncrement
Definition peak_common_node_enums.hpp:50
@ Integer
Definition peak_node.hpp:89
@ UseCache
Definition peak_common_node_enums.hpp:38
The "nodes" namespace contains all GenAPI node types.
Definition peak_utils.hpp:31
The "core" namespace contains the direct GenAPI and GenTL wrapper.
Definition peak_buffer.hpp:32
The "peak" namespace directly contains convenience functionality like the DeviceManager as well as th...
Definition peak_buffer.hpp:29
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:258
struct PEAK_NODE * PEAK_NODE_HANDLE
Definition peak_backend.h:427
int32_t PEAK_NODE_REPRESENTATION
Definition peak_backend.h:279
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:240
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:431
#define PEAK_COMMON_NO_DISCARD
Definition peak_common_defines.h:89
#define PEAK_C_ABI_PREFIX
Definition peak_dll_defines.h:13