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) {
95 return QueryStringFromCInterfaceFunction([&](
char* value,
size_t* valueSize) {
97 m_backendHandle, static_cast<PEAK_NODE_CACHE_USE_POLICY>(cacheUsePolicy), value, valueSize);
103 CallAndCheckCInterfaceFunction([&] {
StringNode & operator=(const StringNode &other)=delete
void SetValue(const std::string &value)
Sets the given value.
Definition: peak_string_node.hpp:101
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.
int64_t MaximumLength() const
Returns the maximum length.
Definition: peak_string_node.hpp:86
The "peak" namespace directly contains convenience functionality like the DeviceManager as well as th...
Definition: peak_dynamic_loader.h:32
NodeCacheUsePolicy
Definition: peak_common_node_enums.hpp:24
struct PEAK_NODE * PEAK_NODE_HANDLE
Definition: peak_backend.h:409
std::string Value(NodeCacheUsePolicy cacheUsePolicy=NodeCacheUsePolicy::UseCache) const
Returns the value.
Definition: peak_string_node.hpp:93
PEAK_C_API PEAK_StringNode_ToNode(PEAK_STRING_NODE_HANDLE stringNodeHandle, PEAK_NODE_HANDLE *nodeHandle)
Casts the given string node to a node.
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.
struct PEAK_STRING_NODE * PEAK_STRING_NODE_HANDLE
Definition: peak_backend.h:429
Represents a GenAPI string node.
Definition: peak_string_node.hpp:34
#define PEAK_C_ABI_PREFIX
Definition: peak_dll_defines.h:16
Represents a GenAPI node.
Definition: peak_node.hpp:121
PEAK_C_API PEAK_StringNode_GetMaximumLength(PEAK_STRING_NODE_HANDLE stringNodeHandle, int64_t *maximumLength)
Asks the given string node for its maximum length.
~StringNode() override=default