3#include "../global.hpp"
5#include "selector_node.hpp"
8#include "_detail/ihas_value_config.hpp"
9#include "_detail/iconfigurable_register_node.hpp"
23 ,
public Private::IHasValueConfig<StringNodePtr>
27 explicit StringNode(HandleGuard<Node> &&guard)
46 CExports::CreateGSStringNodeExTyped(okName.data(),
static_cast<CExports::TGSNamespace
>(nameSpace))));
74 return dynamic_cast<GevServer::Private::IConfigurableRegisterNode *
>(node) ?
true :
false;
79 return value->AccessMode();
89 this, [](
Node *node) {
return dynamic_cast<Private::IConfigurableRegisterNode *
>(node) ?
true :
false; });
93 return value->CacheMode();
131 "requested value config type must be derived from StringNode or be "
132 "of type Cvb::String");
152 "requested value config type must be derived from "
153 "StringNode or be of Cvb::String type");
158 inline Cvb::String StringNode::ValueConfig<Cvb::String>()
const
164 inline void StringNode::SetValueConfig<Cvb::String>(
const Cvb::String &value)
Basic GevServer node for device feature access.
Definition decl_node.hpp:34
static GevServer::Namespace ParseNamespace(const String &name)
Gets the Namespace from the given name .
Definition decl_node.hpp:591
static String EnsureNodeNameOnly(const String &name)
Throws if the given name has a namespace prefix.
Definition decl_node.hpp:564
static String ParseName(const String &name)
Gets the name part of the given node name .
Definition decl_node.hpp:611
ValueNodePtr GetTerminalRegisterNode(const NodeT *node, std::function< bool(Node *)> f) const
Try to get terminal register node.
Definition detail_node.hpp:708
void SetValue(const String &value)
Sets the string value.
Definition string_node.hpp:113
String Value() const
Gets the string value.
Definition string_node.hpp:103
void SetValueConfig(const T &)
Sets the value configuration of this string node.
Definition string_node.hpp:149
static StringNodePtr Create(const String &name)
Creates a new StringNode with the given name .
Definition string_node.hpp:62
GenApi::CacheMode CacheMode() const override
Gets the cache mode of this node.
Definition string_node.hpp:86
T ValueConfig() const
Gets the value configuration of this string node.
Definition string_node.hpp:128
GenApi::AccessMode AccessMode() const override
Gets the access mode of this node.
Definition string_node.hpp:71
static StringNodePtr Create(const String &name, const GevServer::Namespace &nameSpace)
Creates a new StringNode with the given name and nameSpace .
Definition string_node.hpp:42
virtual String ToString() const
Returns this node's value as a string representation.
Definition value_node.hpp:94
virtual void FromString(const String &value)
Sets this node's value from the string value.
Definition value_node.hpp:109
CacheMode
Defines how the value is cached.
Definition genapi.hpp:218
@ NoCache
No caching used.
Definition genapi.hpp:220
AccessMode
Access possibility of the node.
Definition genapi.hpp:183
@ ReadWrite
Node can be read and written to.
Definition genapi.hpp:213
Describes a GenICam Pixel Format Naming Convention (PFNC) compatible image memory buffer with possibl...
Definition decl_int_swiss_knife_node.hpp:11
Namespace
The possible name spaces a node can be in.
Definition gevserver.hpp:147
std::shared_ptr< StringNode > StringNodePtr
Convenience shared pointer for StringNode.
Definition gevserver.hpp:48
@ Value
Accesses the value configuration.
Definition gevserver.hpp:210
@ String
Node is a string node (no reg).
Definition gevserver.hpp:168
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