3#include "../global.hpp"
5#include "selector_node.hpp"
8#include "_detail/iconfigurable_integer_base_node.hpp"
22 ,
public Private::IConfigurableIntegerBaseNode
79 return NativeCall<double>([&](
double& value) {
return CVB_CALL_CAPI(GSNGetAsFloat(
Handle(), value)); });
89 NativeCall([&]() {
return CVB_CALL_CAPI(GSNSetAsFloat(
Handle(), value)); });
98 NativeCall([&]() {
return CExports::GSNSetAsStringTyped(
Handle(), value.data()); });
109 size_t nameLength = 0;
110 auto resultNameLength = CExports::GSNGetAsStringTyped(
Handle(),
reinterpret_cast<Char*
>(0), nameLength);
111 if (resultNameLength < 0)
112 std::rethrow_exception(
113 CvbException::FromCvbResult(resultNameLength,
"failed to get string representation name length"));
115 nameLength +=
sizeof(
Char);
118 auto resultBuffer = CExports::GSNGetAsStringTyped(
Handle(), buffer.data(), nameLength);
119 if (resultBuffer < 0)
120 std::rethrow_exception(
121 CvbException::FromCvbResult(resultBuffer,
"failed to get string representation of this node"));
123 return buffer.data();
Represents a floating point number.
Definition: float_base_node.hpp:24
void SetRepresentation(const GenApi::NumberRepresentation &representation)
Sets how the value is to be represented.
Definition: float_base_node.hpp:67
double Increment() const
Gets the increment of this value.
Definition: float_base_node.hpp:36
void SetValue(double value)
Sets the value of this float node.
Definition: float_base_node.hpp:87
double Value() const
Gets the value of this float node.
Definition: float_base_node.hpp:77
void FromString(const String &value) override
Sets this node's value from the string value .
Definition: float_base_node.hpp:96
double Min() const
Gets the minimal allowed number for this value.
Definition: float_base_node.hpp:50
double Max() const
Gets the maximal allowed number for this value.
Definition: float_base_node.hpp:43
String ToString() const override
Gets the string representation of this node.
Definition: float_base_node.hpp:107
GenApi::NumberRepresentation Representation() const
Gets how the value is to be represented.
Definition: float_base_node.hpp:57
void * Handle() const noexcept
Classic API node handle.
Definition: decl_node.hpp:101
Groups other nodes that are dependent on this one.
Definition: selector_node.hpp:31
NumberRepresentation
Defines how a number is to be interpreted/displayed in a graphical user interface.
Definition: genapi.hpp:139
@ Max
Gets the maximum value.
@ Increment
Gets the increment.
@ Min
Gets the minimum value.
@ NumberRepresentation
Accesses the representation of a number.
Root namespace for the Image Manager interface.
Definition: c_barcode.h:24
char Char
Character type for wide characters or unicode characters.
Definition: string.hpp:59