12#include <peak/dll_interface/peak_dll_interface_util.hpp>
62 void SetValue(
const std::string& value);
65 friend ClassCreator<StringNode>;
87 , m_backendHandle(stringNodeHandle)
92 return QueryNumericFromCInterfaceFunction<int64_t>([&](int64_t* maximumLength) {
101 return QueryStringFromCInterfaceFunction([&](
char* value,
size_t* valueSize) {
111 CallAndCheckCInterfaceFunction([&] {
PEAK_COMMON_NO_DISCARD std::shared_ptr< NodeMap > ParentNodeMap() const
Returns the parent node map.
Definition peak_node.hpp:969
StringNode & operator=(StringNode &&other)=delete
std::string NodeDataType
Definition peak_string_node.hpp:36
static constexpr auto NodeType
Definition peak_string_node.hpp:35
void SetValue(const std::string &value)
Sets the given value.
Definition peak_string_node.hpp:107
~StringNode() override=default
StringNode(const StringNode &other)=delete
std::false_type NodeHasRange
Definition peak_string_node.hpp:37
StringNode & operator=(const StringNode &other)=delete
PEAK_COMMON_NO_DISCARD int64_t MaximumLength() const
Returns the maximum length.
Definition peak_string_node.hpp:90
PEAK_COMMON_NO_DISCARD std::string Value(NodeCacheUsePolicy cacheUsePolicy=NodeCacheUsePolicy::UseCache) const
Returns the value.
Definition peak_string_node.hpp:97
StringNode(StringNode &&other)=delete
NodeCacheUsePolicy
Defines how node value access should interact with the internal cache.
Definition peak_common_node_enums.hpp:36
@ String
Definition peak_node.hpp:93
@ UseCache
Definition peak_common_node_enums.hpp:38
The "nodes" namespace contains all GenAPI node types.
Definition peak_utils.hpp:31
The "core" namespace contains the direct GenAPI and GenTL wrapper.
Definition peak_buffer.hpp:32
The "peak" namespace directly contains convenience functionality like the DeviceManager as well as th...
Definition peak_buffer.hpp:29
struct PEAK_STRING_NODE * PEAK_STRING_NODE_HANDLE
Definition peak_backend.h:447
struct PEAK_NODE * PEAK_NODE_HANDLE
Definition peak_backend.h:427
PEAK_C_API PEAK_StringNode_GetValue(PEAK_STRING_NODE_HANDLE stringNodeHandle, PEAK_NODE_CACHE_USE_POLICY cacheUsePolicy, char *value, size_t *valueSize)
Asks the given string node for its value.
PEAK_C_API PEAK_StringNode_ToNode(PEAK_STRING_NODE_HANDLE stringNodeHandle, PEAK_NODE_HANDLE *nodeHandle)
Casts the given string node to a node.
int32_t PEAK_NODE_CACHE_USE_POLICY
Definition peak_backend.h:240
PEAK_C_API PEAK_StringNode_SetValue(PEAK_STRING_NODE_HANDLE stringNodeHandle, const char *value, size_t valueSize)
Tells the given string node to set the given value.
PEAK_C_API PEAK_StringNode_GetMaximumLength(PEAK_STRING_NODE_HANDLE stringNodeHandle, int64_t *maximumLength)
Asks the given string node for its maximum length.
#define PEAK_COMMON_NO_DISCARD
Definition peak_common_defines.h:89
#define PEAK_C_ABI_PREFIX
Definition peak_dll_defines.h:13