15#include <peak/dll_interface/peak_dll_interface_util.hpp>
58 void SetValue(
const std::string& value);
61 friend ClassCreator<StringNode>;
83 , m_backendHandle(stringNodeHandle)
88 return QueryNumericFromCInterfaceFunction<int64_t>([&](int64_t* maximumLength) {
97 return QueryStringFromCInterfaceFunction([&](
char* value,
size_t* valueSize) {
107 CallAndCheckCInterfaceFunction([&] {
Represents a GenAPI node.
Definition peak_node.hpp:122
std::shared_ptr< NodeMap > ParentNodeMap() const
Returns the parent node map.
Definition peak_node.hpp:899
Represents a GenAPI string node.
Definition peak_string_node.hpp:34
StringNode & operator=(StringNode &&other)=delete
void SetValue(const std::string &value)
Sets the given value.
Definition peak_string_node.hpp:103
~StringNode() override=default
StringNode(const StringNode &other)=delete
StringNode & operator=(const StringNode &other)=delete
int64_t MaximumLength() const
Returns the maximum length.
Definition peak_string_node.hpp:86
std::string Value(NodeCacheUsePolicy cacheUsePolicy=NodeCacheUsePolicy::UseCache) const
Returns the value.
Definition peak_string_node.hpp:93
StringNode(StringNode &&other)=delete
NodeCacheUsePolicy
Definition peak_common_node_enums.hpp:25
The "peak" namespace directly contains convenience functionality like the DeviceManager as well as th...
Definition peak_dynamic_loader.h:33
struct PEAK_STRING_NODE * PEAK_STRING_NODE_HANDLE
Definition peak_backend.h:432
struct PEAK_NODE * PEAK_NODE_HANDLE
Definition peak_backend.h:412
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:225
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_C_ABI_PREFIX
Definition peak_dll_defines.h:16