An OPCUA BaseNode. This is the base for all other node classes. For instantiation of a specific node type use one of the specific subclasses. There is no public interface to create a BaseNode.
More...
#include <cvb/opcua/base_node.hpp>
Inherits enable_shared_from_this< OpcUa::BaseNode >.
Inherited by MethodNode, ObjectNode, and VariableNode.
An OPCUA BaseNode. This is the base for all other node classes. For instantiation of a specific node type use one of the specific subclasses. There is no public interface to create a BaseNode.
- Note
- 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/BareboneClient, and OpcUa/ServerClientInteraction.
◆ Access()
Returns the Access right to an OPCUA BaseNode object.
- Returns
- Access of the given OPCUA BaseNode.
- Exceptions
-
◆ AddReference()
Adds a Reference to the OPCUA node.
- Note
- References defined relations between OPCUA nodes. It is possible to have multiple references inbetween nodes.
- Parameters
-
[in] | destination | OPCUA BaseNode that is the destination of the reference. |
[in] | reference | OPCUA ReferenceType of a certain ReferenceType that defines the relationship between two nodes. Example: Has_Component or Has_SubType |
[in] | direction | flag that defines, if the reference is forward reference. |
- Exceptions
-
◆ Browse()
◆ BrowseName()
Returns the browse name of an OPCUA BaseNode object.
- Returns
- OPCUA BrowseName of the given OPCUA BaseNode.
- Exceptions
-
◆ ConnectionStatus()
Returns the ConnectionStatus of an OPCUA BaseNode object.
- Returns
- ConnectionStatus of the given OPCUA BaseNode.
- Exceptions
-
◆ Description()
Returns the description OPCUA BaseNode object.
- Returns
- Description.
- Exceptions
-
◆ DisplayName()
◆ GetAttributeAsFloat()
double GetAttributeAsFloat |
( |
AttributeID |
attributeID | ) |
const |
|
inline |
Return specific Information about a Opcua::BaseNode.
- Note
- Try avoiding this function if possible. Most information is already available via other Methods (such as Opcua::BaseNode::DisplayName()).
-
Furthermore not all information makes sense/is available for OpcUa::BaseNodes, some information might be applicable to Opcua::FloatNode, but not for OpcUa::ObjectNode. Again, try using methods in the appropriate subclass of OpcUa::BaseNode.
- Parameters
-
- Returns
- the desired information
◆ GetAttributeAsInt()
Return specific Information about a Opcua::BaseNode.
- Note
- Try avoiding this function if possible. Most information is already available via other Methods (such as Opcua::BaseNode::DisplayName()).
-
Furthermore not all information makes sense/is available for OpcUa::BaseNodes, some information might be applicable to Opcua::FloatNode, but not for OpcUa::ObjectNode. Again, try using methods in the appropriate subclass of OpcUa::BaseNode.
- Parameters
-
- Returns
- the desired information
◆ GetAttributeAsString()
Return specific Information about a Opcua::BaseNode.
- Note
- Try avoiding this function if possible. Most information is already available via other Methods (such as Opcua::BaseNode::DisplayName()).
-
Furthermore not all information makes sense/is available for OpcUa::BaseNodes, some information might be applicable to Opcua::FloatNode, but not for OpcUa::ObjectNode. Again, try using methods in the appropriate subclass of OpcUa::BaseNode.
- Parameters
-
- Returns
- the desired information
◆ Handle()
Returns C-API style handle to BaseNode Object.
- Returns
- C-API handle
◆ NodeClass()
Returns the NodeClass of an OPCUA BaseNode object.
- Returns
- OPCUA NodeClass of the given OPCUA BaseNode.
- Exceptions
-
◆ NodeID()
Returns the OPCUA NodeID of an OPCUA BaseNode object.
- Returns
- OPCUA NodeId of the given OPCUA BaseNode.
- Exceptions
-
◆ SetAttributeAsFloat()
void SetAttributeAsFloat |
( |
AttributeID |
attributeID, |
|
|
double |
value |
|
) |
| |
|
inline |
Set specific Information about a Opcua::BaseNode.
- Note
- Try avoiding this function if possible. Most information is already available via other Methods (such as Opcua::BaseNode::DisplayName()).
-
Furthermore not all information makes sense/is available for OpcUa::BaseNodes, some information might be applicable to Opcua::FloatNode, but not for OpcUa::ObjectNode. Again, try using methods in the appropriate subclass of OpcUa::BaseNode.
- Parameters
-
[in] | attributeID | Identifier for the desired information. See OpcUa::AttributeID. |
[in] | value | New value of the attribute |
- Returns
- the desired information
◆ SetAttributeAsInt()
Set specific Information about a Opcua::BaseNode.
- Note
- Try avoiding this function if possible. Most information is already available via other Methods (such as Opcua::BaseNode::DisplayName()).
-
Furthermore not all information makes sense/is available for OpcUa::BaseNodes, some information might be applicable to Opcua::FloatNode, but not for OpcUa::ObjectNode. Again, try using methods in the appropriate subclass of OpcUa::BaseNode.
- Parameters
-
[in] | attributeID | Identifier for the desired information. See OpcUa::AttributeID. |
[in] | value | New value of the attribute |
- Returns
- the desired information
◆ SetAttributeAsString()
Set specific Information about a Opcua::BaseNode.
- Note
- Try avoiding this function if possible. Most information is already available via other Methods (such as Opcua::BaseNode::DisplayName()).
-
Furthermore not all information makes sense/is available for OpcUa::BaseNodes, some information might be applicable to Opcua::FloatNode, but not for OpcUa::ObjectNode. Again, try using methods in the appropriate subclass of OpcUa::BaseNode.
- Parameters
-
[in] | attributeID | Identifier for the desired information. See OpcUa::AttributeID. |
[in] | value | New value of the attribute |
- Returns
- the desired information