A Node with integer values provides an interface for storage and manipulation of integer (default int representation) numbers.
More...
#include <cvb/opcua/integer_node.hpp>
Inherits VariableNode.
Public Member Functions | |
std::int64_t | Value () const |
Returns the saved value of the node. More... | |
void | SetValue (std::int64_t value) |
Set value of the node to the given value. More... | |
Public Member Functions inherited from VariableNode | |
OpcUa::DataType | DataType () const |
EventCookie | RegisterWriteCallback (std::function< void()> handler) |
EventCookie | RegisterReadCallback (std::function< void()> handler) |
void | UnregisterCallback (EventCookie eventCookie) |
Public Member Functions inherited from BaseNode | |
void * | Handle () const noexcept |
Returns C-API style handle to BaseNode Object. More... | |
OpcUa::NodeIDPtr | NodeID () const |
Returns the OPCUA NodeID of an OPCUA BaseNode object. More... | |
String | BrowseName () const |
Returns the browse name of an OPCUA BaseNode object. More... | |
std::vector< NodeIDPtr > | Browse (const BrowseFilter &filter) const |
"Browse" all referenced BaseNodes of this BaseNode. More... | |
String | DisplayName () const |
Returns the humanreadable name of a node. More... | |
OpcUa::NodeClass | NodeClass () const |
Returns the NodeClass of an OPCUA BaseNode object. More... | |
OpcUa::ConnectionStatus | ConnectionStatus () const |
Returns the ConnectionStatus of an OPCUA BaseNode object. More... | |
OpcUa::Access | Access () const |
Returns the Access right to an OPCUA BaseNode object. More... | |
String | Description () const |
Returns the description OPCUA BaseNode object. More... | |
void | AddReference (const OpcUa::BaseNode &destination, const ReferenceType reference, ReferenceDirection direction) const |
Adds a Reference to the OPCUA node. More... | |
std::int64_t | GetAttributeAsInt (AttributeID attributeID) const |
Return specific Information about a Opcua::BaseNode. More... | |
void | SetAttributeAsInt (AttributeID attributeID, std::int64_t value) |
Set specific Information about a Opcua::BaseNode. More... | |
double | GetAttributeAsFloat (AttributeID attributeID) const |
Return specific Information about a Opcua::BaseNode. More... | |
void | SetAttributeAsFloat (AttributeID attributeID, double value) |
Set specific Information about a Opcua::BaseNode. More... | |
String | GetAttributeAsString (AttributeID attributeID) const |
Return specific Information about a Opcua::BaseNode. More... | |
void | SetAttributeAsString (AttributeID attributeID, const String &value) |
Set specific Information about a Opcua::BaseNode. More... | |
Static Public Member Functions | |
static IntegerNodePtr | Create (std::uint16_t namespaceIndex, const Cvb::String &name, const OpcUa::NodeID &parentNodeID, std::int64_t value) |
Creates an OPCUA Variable with the specified parameter, data type and set its value as an integer. More... | |
A Node with integer values provides an interface for storage and manipulation of integer (default int representation) numbers.
|
inlinestatic |
Creates an OPCUA Variable with the specified parameter, data type and set its value as an integer.
[in] | namespaceIndex | Index of the namespace where the OPCUA BaseNode should belong to. |
[in] | name | String literal for non-localized, human-readable name of an OPCUA BaseNode. |
[in] | parentNodeID | OPCUA NodeId of the parent to which the OPCUA BaseNode belongs. |
[in] | value | Sets the value of the OPCUA Variable as integer. |
Any | exception derived from std::exception including CvbException and OpcUaException. |
|
inline |
Set value of the node to the given value.
[in] | value | The value of the node |
Any | exception derived from std::exception including CvbException and OpcUaException. |
|
inline |
Returns the saved value of the node.
Any | exception derived from std::exception including CvbException and OpcUaException. |