5#include "../_cexports/c_gen_api.h"
7#include "../global.hpp"
9#include "_decl/decl_node.hpp"
22 class ValueNode :
public Node
34 NativeCall([&]() {
return CExports::NInvalidate(
Handle()); });
44 return GetInfoAsBool(NodeInfo::Streamable);
54 auto bufferSize = NativeCall<size_t>(
55 [&](
size_t &size) {
return CExports::NGetAsStringTyped(
Handle(),
reinterpret_cast<Char *
>(0), size); });
56 bufferSize +=
sizeof(
Char);
58 NativeCall([&]() {
return CExports::NGetAsStringTyped(
Handle(), &buffer[0], bufferSize); });
69 NativeCall([&]() {
return CExports::NSetAsStringTyped(
Handle(), value.c_str()); });
80 return CExports::NGetVerifyMode(
Handle(),
reinterpret_cast<CExports::TVerifyMode &
>(value));
92 [&]() {
return CExports::NSetVerifyMode(
Handle(),
static_cast<CExports::TVerifyMode
>(readWriteVerify)); });
104 auto timeMs = GetInfoAsInt(NodeInfo::PollingTime);
112 explicit ValueNode(HandleGuard<Node> &&guard) noexcept
22 class ValueNode :
public Node {
…};
Basic GenApi node for device feature access.
Definition decl_node.hpp:38
void * Handle() const noexcept
Classic API node handle.
Definition decl_node.hpp:71
Base class for all nodes, that have a value.
Definition value_node.hpp:23
virtual String ToString() const
Returns this node's value as a string representation.
Definition value_node.hpp:52
bool IsStreamable() const
Returns whether this node should be used when saving camera settings.
Definition value_node.hpp:42
void SetVerifyMode(ReadWriteVerify readWriteVerify)
Sets how values are verified in this node.
Definition value_node.hpp:89
ReadWriteVerify VerifyMode() const
Returns how the values in this node are verified.
Definition value_node.hpp:77
std::chrono::milliseconds PollingTime() const
Gets the polling time of this value.
Definition value_node.hpp:102
virtual void FromString(const String &value)
Sets the value of this node from the string value.
Definition value_node.hpp:67
void Invalidate()
Invalidates the values of this node.
Definition value_node.hpp:32
Namespace for GenApi based device configuration.
Definition decl_fw_updater.hpp:29
ReadWriteVerify
Controls how read/write operations are verified by the GenApi.
Definition genapi.hpp:172
Root namespace for the Image Manager interface.
Definition c_bayer_to_rgb.h:17
char Char
Character type for wide characters or unicode characters.
Definition string.hpp:63
std::string String
String for wide characters or unicode characters.
Definition string.hpp:49