3#include "../global.hpp"
5#include "selector_node.hpp"
18 class IntegerNode :
public SelectorNode
21 explicit IntegerNode(HandleGuard<Node> &&guard) noexcept
33 return static_cast<std::int64_t>(NativeCall<CExports::cvbint64_t>(
34 [&](CExports::cvbint64_t &value) {
return CExports::NGetAsInteger(
Handle(), value); }));
44 NativeCall([&]() {
return CExports::NSetAsInteger(
Handle(),
static_cast<CExports::cvbint64_t
>(value)); });
54 return GetInfoAsInt(NodeInfo::Min);
64 return GetInfoAsInt(NodeInfo::Max);
77 return GetInfoAsInt(NodeInfo::Increment);
97 return GetInfoAsString(NodeInfo::Unit);
18 class IntegerNode :
public SelectorNode {
…};
103 using GenApi::IntegerNode;
void SetValue(std::int64_t value)
Sets the value of this integer node.
Definition integer_node.hpp:42
NumberRepresentation Representation() const
Gets how the value is to be represented.
Definition integer_node.hpp:85
std::int64_t Min() const
Gets the minimal allowed number for this value.
Definition integer_node.hpp:52
std::int64_t Max() const
Gets the maximal allowed number for this value.
Definition integer_node.hpp:62
String Unit() const
Gets the unit of this node's value.
Definition integer_node.hpp:95
std::int64_t Value() const
Gets the value of this integer node.
Definition integer_node.hpp:31
std::int64_t Increment() const
Gets the increment of this value.
Definition integer_node.hpp:75
void * Handle() const noexcept
Classic API node handle.
Definition decl_node.hpp:71
Namespace for GenApi based device configuration.
Definition decl_fw_updater.hpp:29
NumberRepresentation
Defines how a number is to be interpreted/displayed in a graphical user interface.
Definition genapi.hpp:143
Root namespace for the Image Manager interface.
Definition c_bayer_to_rgb.h:17
std::string String
String for wide characters or unicode characters.
Definition string.hpp:49