15 #include <peak/dll_interface/peak_dll_interface_util.hpp> 64 double Minimum()
const;
76 double Maximum()
const;
88 double Increment()
const;
113 std::vector<double> ValidValues()
const;
135 std::string Unit()
const;
157 int64_t DisplayPrecision()
const;
169 bool HasConstantIncrement()
const;
195 void SetValue(
double value);
198 friend ClassCreator<FloatNode>;
217 std::string entryString;
221 entryString =
"Automatic";
225 entryString =
"Fixed";
229 entryString =
"Scientific";
240 , m_backendHandle(floatNodeHandle)
245 return QueryNumericFromCInterfaceFunction<double>(
251 return QueryNumericFromCInterfaceFunction<double>(
257 return QueryNumericFromCInterfaceFunction<double>([&](
double* increment) {
264 return static_cast<NodeIncrementType>(QueryNumericFromCInterfaceFunction<PEAK_NODE_INCREMENT_TYPE>(
272 return QueryNumericArrayFromCInterfaceFunction<double>([&](
double* validValues,
size_t* validValuesSize) {
279 return static_cast<NodeRepresentation>(QueryNumericFromCInterfaceFunction<PEAK_NODE_REPRESENTATION>(
287 return QueryStringFromCInterfaceFunction([&](
char* unit,
size_t* unitSize) {
294 return static_cast<NodeDisplayNotation>(QueryNumericFromCInterfaceFunction<PEAK_NODE_DISPLAY_NOTATION>(
302 return QueryNumericFromCInterfaceFunction<int64_t>([&](int64_t* displayPrecision) {
309 return QueryNumericFromCInterfaceFunction<PEAK_BOOL8>([&](
PEAK_BOOL8* hasConstantIncrement) {
316 return QueryNumericFromCInterfaceFunction<double>([&](
double* value) {
318 m_backendHandle, static_cast<PEAK_NODE_CACHE_USE_POLICY>(cacheUsePolicy), value);
324 CallAndCheckCInterfaceFunction(
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_GetRepresentation(PEAK_FLOAT_NODE_HANDLE floatNodeHandle, PEAK_NODE_REPRESENTATION *representation)
Asks the given float node for its representation.
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_GetMinimum(PEAK_FLOAT_NODE_HANDLE floatNodeHandle, double *minimum)
Asks the given float node for its minimum.
int8_t PEAK_BOOL8
Definition: peak_backend.h:26
std::vector< double > ValidValues() const
Returns the valid values.
Definition: peak_float_node.hpp:270
The "peak" namespace directly contains convenience functionality like the DeviceManager as well as th...
Definition: peak_dynamic_loader.h:32
NodeCacheUsePolicy
Definition: peak_common_node_enums.hpp:24
Represents a GenAPI float node.
Definition: peak_float_node.hpp:44
double Increment() const
Returns the increment.
Definition: peak_float_node.hpp:255
int32_t PEAK_NODE_INCREMENT_TYPE
Definition: peak_backend.h:243
double Value(NodeCacheUsePolicy cacheUsePolicy=NodeCacheUsePolicy::UseCache) const
Returns the value.
Definition: peak_float_node.hpp:314
void SetValue(double value)
Sets the given value.
Definition: peak_float_node.hpp:322
NodeIncrementType IncrementType() const
Returns the increment type.
Definition: peak_float_node.hpp:262
struct PEAK_NODE * PEAK_NODE_HANDLE
Definition: peak_backend.h:411
int32_t PEAK_NODE_DISPLAY_NOTATION
Definition: peak_backend.h:234
std::string ToString(NodeCacheUsePolicy entry)
Definition: peak_common_node_enums.hpp:54
double Maximum() const
Returns the maximum.
Definition: peak_float_node.hpp:249
PEAK_C_API PEAK_FloatNode_GetMaximum(PEAK_FLOAT_NODE_HANDLE floatNodeHandle, double *maximum)
Asks the given float node for its maximum.
NodeIncrementType
Definition: peak_common_node_enums.hpp:33
int64_t DisplayPrecision() const
Returns the display precision.
Definition: peak_float_node.hpp:300
std::string Unit() const
Returns the unit.
Definition: peak_float_node.hpp:285
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.
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_ToNode(PEAK_FLOAT_NODE_HANDLE floatNodeHandle, PEAK_NODE_HANDLE *nodeHandle)
Casts the given float node to a node.
PEAK_C_API PEAK_FloatNode_GetDisplayPrecision(PEAK_FLOAT_NODE_HANDLE floatNodeHandle, int64_t *displayPrecision)
Asks the given float node for its display precision.
NodeDisplayNotation
Display notation for numbers in FloatNode.
Definition: peak_float_node.hpp:34
double Minimum() const
Returns the minimum.
Definition: peak_float_node.hpp:243
struct PEAK_FLOAT_NODE * PEAK_FLOAT_NODE_HANDLE
Definition: peak_backend.h:427
PEAK_C_API PEAK_FloatNode_GetIncrement(PEAK_FLOAT_NODE_HANDLE floatNodeHandle, double *increment)
Asks the given float node for its increment.
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.
NodeDisplayNotation DisplayNotation() const
Returns the display notation.
Definition: peak_float_node.hpp:292
#define PEAK_C_ABI_PREFIX
Definition: peak_dll_defines.h:16
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.
NodeRepresentation
Definition: peak_common_node_enums.hpp:43
PEAK_C_API PEAK_FloatNode_GetUnit(PEAK_FLOAT_NODE_HANDLE floatNodeHandle, char *unit, size_t *unitSize)
Asks the given float node for its unit.
Represents a GenAPI node.
Definition: peak_node.hpp:121
int32_t PEAK_NODE_REPRESENTATION
Definition: peak_backend.h:264
bool HasConstantIncrement() const
Checks whether the node has a constant increment.
Definition: peak_float_node.hpp:307
NodeRepresentation Representation() const
Returns the representation.
Definition: peak_float_node.hpp:277