3#include "../global.hpp"
5#include "integer_base_node.hpp"
8#include "_detail/ihas_value_config.hpp"
9#include "_detail/iconfigurable_register_node.hpp"
10#include "_detail/iconfigurable_command_node.hpp"
22 :
public IntegerBaseNode
24 ,
public Private::IHasValueConfig<IntegerBaseNodePtr>
28 explicit IntegerNode(HandleGuard<Node> &&guard)
46 CExports::CreateGSIntegerNodeTyped(name.data(),
static_cast<CExports::TGSNamespace
>(nameSpace))));
84 "requested increment config type must be derived from IntegerBaseNode or "
100 "requested value config type must be derived from "
101 "IntegerBaseNode or be of type std::int64_t");
111 this, [](
Node *node) {
return dynamic_cast<Private::IConfigurableRegisterNode *
>(node) ?
true :
false; });
112 if (value ==
nullptr)
115 return value->AccessMode();
125 this, [](
Node *node) {
return dynamic_cast<Private::IConfigurableRegisterNode *
>(node) ?
true :
false; });
126 if (value ==
nullptr)
129 return value->CacheMode();
136 template <
class Rep,
class Period>
140 auto isRegisterNode =
dynamic_cast<Private::IConfigurableRegisterNode *
>(node);
141 auto isCommandNode =
dynamic_cast<Private::IConfigurableCommandNode *
>(node);
142 return (isRegisterNode || isCommandNode) ? true :
false;
144 if (value ==
nullptr)
162 "requested max config type must be derived from IntegerBaseNode or be "
182 "requested value config type must be derived from "
183 "IntegerBaseNode or be of type std::int64_t");
198 "requested min config type must be derived from IntegerBaseNode or be "
218 "requested min config type must be derived from "
219 "IntegerBaseNode or be of type std::int64_t");
237 "requested value config type must be derived from IntegerBaseNode or be "
258 "requested value config type must be derived from "
259 "IntegerBaseNode or be of integral type");
272 void SetUnit(
const String & )
override
21 class IntegerNode {
…};
279 inline std::int64_t IntegerNode::MaxConfig<std::int64_t>()
const
void SetMinConfig(const T &)
Sets the minimum configuration of this integer node.
Definition integer_node.hpp:215
void SetMaxConfig(const T &)
Sets the maximum configuration of this integer node.
Definition integer_node.hpp:179
String Unit() const override
Gets the unit of this node's value.
Definition integer_node.hpp:267
T MaxConfig() const
Gets the maximum configuration of this integer node.
Definition integer_node.hpp:159
void SetIncrementConfig(const T &)
Sets the increment of this value.
Definition integer_node.hpp:97
void SetValueConfig(const T &)
Sets the value configuration of this integer node.
Definition integer_node.hpp:255
T MinConfig() const
Gets the minimum configuration of this integer node.
Definition integer_node.hpp:195
GenApi::CacheMode CacheMode() const override
Gets the cache mode by querying all ValueConfigs for it.
Definition integer_node.hpp:122
T ValueConfig() const
Gets the value configuration of this integer node.
Definition integer_node.hpp:234
GenApi::AccessMode AccessMode() const override
Gets the access mode by querying all ValueConfigs for it.
Definition integer_node.hpp:108
static IntegerNodePtr Create(const String &name, const GevServer::Namespace &nameSpace)
Creates a new IntegerNode with the given name and nameSpace .
Definition integer_node.hpp:43
static IntegerNodePtr Create(const String &name)
Creates a new IntegerNode with the given name .
Definition integer_node.hpp:62
T IncrementConfig() const
Gets and sets the increment configuration of this integer node.
Definition integer_node.hpp:81
std::chrono::duration< Rep, Period > PollingTime() const
Gets the polling time by querying all ValueConfigs for it.
Definition integer_node.hpp:137
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 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
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< IntegerBaseNode > IntegerBaseNodePtr
Convenience shared pointer for IntegerBaseNode.
Definition gevserver.hpp:64
std::shared_ptr< IntegerNode > IntegerNodePtr
Convenience shared pointer for IntegerNode.
Definition gevserver.hpp:72
@ Value
Accesses the value configuration.
Definition gevserver.hpp:210
@ Max
Gets the maximum value.
Definition gevserver.hpp:195
@ Increment
Gets the increment.
Definition gevserver.hpp:197
@ Min
Gets the minimum value.
Definition gevserver.hpp:196
@ 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