15#include <peak/dll_interface/peak_dll_interface_util.hpp>
142 std::string
Unit()
const;
206 friend ClassCreator<FloatNode>;
225 std::string entryString;
229 entryString =
"Automatic";
233 entryString =
"Fixed";
237 entryString =
"Scientific";
248 , m_backendHandle(floatNodeHandle)
253 return QueryNumericFromCInterfaceFunction<double>(
259 return QueryNumericFromCInterfaceFunction<double>(
265 return QueryNumericFromCInterfaceFunction<double>([&](
double* increment) {
272 return static_cast<NodeIncrementType>(QueryNumericFromCInterfaceFunction<PEAK_NODE_INCREMENT_TYPE>(
280 return QueryNumericArrayFromCInterfaceFunction<double>([&](
double* validValues,
size_t* validValuesSize) {
287 return static_cast<NodeRepresentation>(QueryNumericFromCInterfaceFunction<PEAK_NODE_REPRESENTATION>(
295 return QueryStringFromCInterfaceFunction([&](
char* unit,
size_t* unitSize) {
302 return static_cast<NodeDisplayNotation>(QueryNumericFromCInterfaceFunction<PEAK_NODE_DISPLAY_NOTATION>(
310 return QueryNumericFromCInterfaceFunction<int64_t>([&](int64_t* displayPrecision) {
317 return QueryNumericFromCInterfaceFunction<PEAK_BOOL8>([&](
PEAK_BOOL8* hasConstantIncrement) {
324 return QueryNumericFromCInterfaceFunction<double>([&](
double* value) {
332 CallAndCheckCInterfaceFunction(
NodeIncrementType IncrementType() const
Returns the increment type.
Definition peak_float_node.hpp:270
FloatNode & operator=(const FloatNode &other)=delete
FloatNode & operator=(FloatNode &&other)=delete
~FloatNode() override=default
void SetValue(double value)
Sets the given value.
Definition peak_float_node.hpp:330
static constexpr auto NodeType
Definition peak_float_node.hpp:50
bool HasConstantIncrement() const
Checks whether the node has a constant increment.
Definition peak_float_node.hpp:315
std::vector< double > ValidValues() const
Returns the valid values.
Definition peak_float_node.hpp:278
double Increment() const
Returns the increment.
Definition peak_float_node.hpp:263
double Value(NodeCacheUsePolicy cacheUsePolicy=NodeCacheUsePolicy::UseCache) const
Returns the value.
Definition peak_float_node.hpp:322
double Maximum() const
Returns the maximum.
Definition peak_float_node.hpp:257
NodeDisplayNotation DisplayNotation() const
Returns the display notation.
Definition peak_float_node.hpp:300
NodeRepresentation Representation() const
Returns the representation.
Definition peak_float_node.hpp:285
double Minimum() const
Returns the minimum.
Definition peak_float_node.hpp:251
std::string Unit() const
Returns the unit.
Definition peak_float_node.hpp:293
int64_t DisplayPrecision() const
Returns the display precision.
Definition peak_float_node.hpp:308
std::true_type NodeHasRange
Definition peak_float_node.hpp:52
FloatNode(FloatNode &&other)=delete
FloatNode(const FloatNode &other)=delete
double NodeDataType
Definition peak_float_node.hpp:51
NodeIncrementType
Definition peak_common_node_enums.hpp:49
NodeDisplayNotation
Display notation for numbers in FloatNode.
Definition peak_float_node.hpp:37
NodeCacheUsePolicy
Defines how node value access should interact with the internal cache.
Definition peak_common_node_enums.hpp:37
NodeRepresentation
Definition peak_common_node_enums.hpp:60
@ Float
Definition peak_node.hpp:95
@ Automatic
Definition peak_float_node.hpp:38
@ Scientific
Definition peak_float_node.hpp:40
@ Fixed
Definition peak_float_node.hpp:39
@ UseCache
Definition peak_common_node_enums.hpp:39
The "nodes" namespace contains all GenAPI node types.
Definition peak_boolean_node.hpp:26
std::string ToString(NodeCacheUsePolicy entry)
Definition peak_common_node_enums.hpp:70
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_FloatNode_GetIncrementType(PEAK_FLOAT_NODE_HANDLE floatNodeHandle, PEAK_NODE_INCREMENT_TYPE *incrementType)
Asks the given float node for its increment type.
PEAK_C_API PEAK_FloatNode_GetDisplayNotation(PEAK_FLOAT_NODE_HANDLE floatNodeHandle, PEAK_NODE_DISPLAY_NOTATION *displayNotation)
Asks the given float node for its display notation.
PEAK_C_API PEAK_FloatNode_GetIncrement(PEAK_FLOAT_NODE_HANDLE floatNodeHandle, double *increment)
Asks the given float node for its increment.
int32_t PEAK_NODE_INCREMENT_TYPE
Definition peak_backend.h:260
PEAK_C_API PEAK_FloatNode_ToNode(PEAK_FLOAT_NODE_HANDLE floatNodeHandle, PEAK_NODE_HANDLE *nodeHandle)
Casts the given float node to a node.
struct PEAK_NODE * PEAK_NODE_HANDLE
Definition peak_backend.h:429
PEAK_C_API PEAK_FloatNode_GetHasConstantIncrement(PEAK_FLOAT_NODE_HANDLE floatNodeHandle, PEAK_BOOL8 *hasConstantIncrement)
Asks the given float node whether it has a constant increment.
int32_t PEAK_NODE_REPRESENTATION
Definition peak_backend.h:281
PEAK_C_API PEAK_FloatNode_GetValidValues(PEAK_FLOAT_NODE_HANDLE floatNodeHandle, double *validValues, size_t *validValuesSize)
Asks the given float node for its valid values.
PEAK_C_API PEAK_FloatNode_GetUnit(PEAK_FLOAT_NODE_HANDLE floatNodeHandle, char *unit, size_t *unitSize)
Asks the given float node for its unit.
struct PEAK_FLOAT_NODE * PEAK_FLOAT_NODE_HANDLE
Definition peak_backend.h:445
PEAK_C_API PEAK_FloatNode_GetMinimum(PEAK_FLOAT_NODE_HANDLE floatNodeHandle, double *minimum)
Asks the given float node for its minimum.
int32_t PEAK_NODE_CACHE_USE_POLICY
Definition peak_backend.h:242
int8_t PEAK_BOOL8
Definition peak_backend.h:43
PEAK_C_API PEAK_FloatNode_GetDisplayPrecision(PEAK_FLOAT_NODE_HANDLE floatNodeHandle, int64_t *displayPrecision)
Asks the given float node for its display precision.
PEAK_C_API PEAK_FloatNode_SetValue(PEAK_FLOAT_NODE_HANDLE floatNodeHandle, double value)
Tells the given float node to set the given value.
PEAK_C_API PEAK_FloatNode_GetMaximum(PEAK_FLOAT_NODE_HANDLE floatNodeHandle, double *maximum)
Asks the given float node for its maximum.
PEAK_C_API PEAK_FloatNode_GetValue(PEAK_FLOAT_NODE_HANDLE floatNodeHandle, PEAK_NODE_CACHE_USE_POLICY cacheUsePolicy, double *value)
Asks the given float node for its value.
int32_t PEAK_NODE_DISPLAY_NOTATION
Definition peak_backend.h:251
PEAK_C_API PEAK_FloatNode_GetRepresentation(PEAK_FLOAT_NODE_HANDLE floatNodeHandle, PEAK_NODE_REPRESENTATION *representation)
Asks the given float node for its representation.
#define PEAK_C_ABI_PREFIX
Definition peak_dll_defines.h:16