An OPCUA VariableNode object. It handles the data modeling acording to the OPCUA specification.
More...
#include <cvb/opcua/variable_node.hpp>
Inherits BaseNode.
Inherited by FloatNode, IntegerNode, and StringNode.
An OPCUA VariableNode object. It handles the data modeling acording to the OPCUA specification.
- Note
- This node serves as the basis for OpcUa::StringNode and similar. It will also created/returned if no specific implementation for a VariableNode is available.
-
OPCUA nodes are available for different node classes (for details refer to:
https://opcfoundation.org/developer-tools/specifications-unified-architecture/part-5-information-model/)
- Examples
- OpcUa/ServerClientInteraction.
◆ DataType()
/brief Returns the DataType of the stored data.
- Returns
- The datatype
- Exceptions
-
◆ RegisterReadCallback()
/brief Registers a callback on read operations. The callback is of type: std::function<void()>, the usage of lambdas for dataaccess is highly recommended.
- Note
- The callback MUST be deregistered, otherwise internal object handles will not be closed.
- Returns
- A cookie for later deregistering the callback.
- Exceptions
-
◆ RegisterWriteCallback()
/brief Registers a callback on write operations. The callback is of type std::function<void()>, the usage of lambdas for data access is highly recommended.
- Note
- The callback MUST be deregistered, otherwise internal object handles will not be closed.
- Returns
- A cookie for later deregistering the callback.
- Exceptions
-
◆ UnregisterCallback()
/brief Deregisters a callback.
- Note
- The callback MUST be deregistered, otherwise internal object handles will not be closed.
- Parameters
-
[in] | eventCookie | The cookie created at callback creation. |
- Exceptions
-