15#include <peak/dll_interface/peak_dll_interface_util.hpp>
64 std::string
Unit()
const;
73 friend ClassCreator<IntegerNode>;
96 , m_backendHandle(integerNodeHandle)
101 return QueryNumericFromCInterfaceFunction<int64_t>([&](int64_t* minimum) {
108 return QueryNumericFromCInterfaceFunction<int64_t>([&](int64_t* maximum) {
115 return QueryNumericFromCInterfaceFunction<int64_t>([&](int64_t* increment) {
122 return static_cast<NodeIncrementType>(QueryNumericFromCInterfaceFunction<PEAK_NODE_INCREMENT_TYPE>(
130 return QueryNumericArrayFromCInterfaceFunction<int64_t>([&](int64_t* validValues,
size_t* validValuesSize) {
137 return static_cast<NodeRepresentation>(QueryNumericFromCInterfaceFunction<PEAK_NODE_REPRESENTATION>(
145 return QueryStringFromCInterfaceFunction([&](
char* unit,
size_t* unitSize) {
152 return QueryNumericFromCInterfaceFunction<int64_t>([&](int64_t* value) {
160 CallAndCheckCInterfaceFunction(
Represents a GenAPI integer node.
Definition peak_integer_node.hpp:36
IntegerNode & operator=(const IntegerNode &other)=delete
IntegerNode(const IntegerNode &other)=delete
int64_t Minimum() const
Returns the minimum.
Definition peak_integer_node.hpp:99
int64_t Maximum() const
Returns the maximum.
Definition peak_integer_node.hpp:106
int64_t Increment() const
Returns the increment.
Definition peak_integer_node.hpp:113
int64_t Value(NodeCacheUsePolicy cacheUsePolicy=NodeCacheUsePolicy::UseCache) const
Returns the value.
Definition peak_integer_node.hpp:150
IntegerNode & operator=(IntegerNode &&other)=delete
NodeIncrementType IncrementType() const
Returns the increment type.
Definition peak_integer_node.hpp:120
NodeRepresentation Representation() const
Returns the representation.
Definition peak_integer_node.hpp:135
~IntegerNode() override=default
IntegerNode(IntegerNode &&other)=delete
std::string Unit() const
Returns the unit.
Definition peak_integer_node.hpp:143
void SetValue(int64_t value)
Sets the given value.
Definition peak_integer_node.hpp:158
std::vector< int64_t > ValidValues() const
Returns the valid values.
Definition peak_integer_node.hpp:128
Represents a GenAPI node.
Definition peak_node.hpp:122
NodeIncrementType
Definition peak_common_node_enums.hpp:34
NodeCacheUsePolicy
Definition peak_common_node_enums.hpp:25
NodeRepresentation
Definition peak_common_node_enums.hpp:44
The "peak" namespace directly contains convenience functionality like the DeviceManager as well as th...
Definition peak_dynamic_loader.h:32
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:243
struct PEAK_NODE * PEAK_NODE_HANDLE
Definition peak_backend.h:412
int32_t PEAK_NODE_REPRESENTATION
Definition peak_backend.h:264
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:225
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:416
#define PEAK_C_ABI_PREFIX
Definition peak_dll_defines.h:16