C++ Based OPC UA Client/Server SDK
1.6.1.391
|
Stores the information of a Variable node. More...
#include <basenodes.h>
Inherits UaBase::BaseNode.
Public Member Functions | |
Variable () | |
Creates a Variable. More... | |
Variable (const UaNodeId &nodeId) | |
Creates a Variable. More... | |
~Variable () | |
Destruction. More... | |
virtual OpcUa_NodeClass | nodeClass () const |
Returns the NodeClass of the BaseNode. More... | |
UaNodeId | typeDefinitionId () const |
Returns the NodeId of the TypeDefinition. More... | |
UaNodeId | modellingRuleId () const |
Returns the NodeId of the ModellingRule. More... | |
void | setTypeDefinitionId (const UaNodeId &typeDefinitionId) |
Sets the TypeDefinition. More... | |
void | setModellingRuleId (const UaNodeId &typeDefinitionId) |
Sets the ModellingRule. More... | |
void | setAccessLevel (OpcUa_Byte accessLevel) |
Sets the AccessLevel. More... | |
OpcUa_Byte | accessLevel () const |
Returns the AccessLevel. More... | |
void | setUserAccessLevel (OpcUa_Byte userAccessLevel) |
Sets the UserAccessLevel. More... | |
OpcUa_Byte | userAccessLevel () const |
Returns the UserAccessLevel. More... | |
void | setDataTypeId (const UaNodeId &dataTypeId) |
Sets the NodeId of the DataType. More... | |
UaNodeId | dataTypeId () const |
Returns the NodeId of the DataType. More... | |
void | setValueRank (OpcUa_Int32 valueRank) |
Sets the ValueRank. More... | |
OpcUa_Int32 | valueRank () const |
Returns the ValueRank. More... | |
void | setArrayDimensions (const UaUInt32Array &arrayDimensions) |
Sets the ArrayDimensions. More... | |
UaUInt32Array | arrayDimensions () const |
Returns the ArrayDimensions. More... | |
void | setValue (const UaVariant &value) |
Sets the Value. More... | |
UaVariant | value () const |
Returns the Value. More... | |
void | setMinimumSamplingInterval (OpcUa_Double minimumSamplingInterval) |
Sets the MinimumSamplingInterval. More... | |
OpcUa_Double | minimumSamplingInterval () const |
Returns the MinimumSamplingInterval. More... | |
void | setHistorizing (OpcUa_Boolean historizing) |
Sets the Historizing attribute. More... | |
OpcUa_Boolean | historizing () const |
Returns the Historizing attribute. More... | |
virtual bool | evaluateModelParents (const std::map< UaNodeId, BaseNode * > &mapNodes) |
Creates FullReferences from References. More... | |
virtual void | getAttributeValue (OpcUa_Int32 attributeId, UaDataValue &uaDataValue) const |
Returns the attribute value for the requested attribute. More... | |
virtual UaStatus | setAttributeValue (OpcUa_Int32 attributeId, const UaDataValue &uaDataValue) |
Write the attribute value for the requested attribute. More... | |
Public Member Functions inherited from UaBase::BaseNode | |
virtual | ~BaseNode () |
Destruction. More... | |
virtual void | setNodeId (const UaNodeId &nodeId) |
Sets the NodeId of the BaseNode. More... | |
UaNodeId | nodeId () const |
Returns the NodeId of the BaseNode. More... | |
void | setBrowseName (const UaQualifiedName &browseName) |
Sets the BrowseName of the BaseNode. More... | |
UaQualifiedName | browseName () const |
Returns the BrowseName of the BaseNode. More... | |
void | setDisplayName (const UaLocalizedText &displayName) |
Sets the DisplayName of the BaseNode. More... | |
UaLocalizedText | displayName () const |
Returns the DisplayName of the BaseNode. More... | |
void | setDescription (const UaLocalizedText &description) |
Sets the Description of the BaseNode. More... | |
UaLocalizedText | description () const |
Returns the Description of the BaseNode. More... | |
void | setWriteMask (OpcUa_UInt32 writeMask) |
Sets the WriteMask of the BaseNode. More... | |
OpcUa_UInt32 | writeMask () const |
Returns the WriteMask of the BaseNode. More... | |
void | setUserWriteMask (OpcUa_UInt32 userWriteMask) |
Sets the UserWriteMask of the BaseNode. More... | |
OpcUa_UInt32 | userWriteMask () const |
Returns the UserWriteMask of the BaseNode. More... | |
void | setParentNodeId (const UaNodeId &parentNodeId) |
Sets the NodeId of the parent node of the BaseNode. More... | |
UaNodeId | parentNodeId () const |
Returns the NodeId of the parent node. More... | |
virtual void | evaluateReferences (const std::map< UaNodeId, BaseNode * > &mapNodes) |
Evaluates the References. More... | |
void | parentNode (UaNodeId &rNodeId, UaNodeId &rReferenceTypeId) const |
Returns the NodeId of the node and ReferenceTypeId that references the BaseNode hierarchically. More... | |
void | addReference (const Reference &reference) |
Adds the References. More... | |
void | removeReference (const Reference &reference) |
Removes the Reference if the Reference can be found. More... | |
void | addFullReference (const FullReference &reference) |
Adds the FullReference. More... | |
void | addReferenceUnsafe (const Reference &reference) |
Adds a unique Reference. More... | |
bool | isHierarchicallyReferenced () const |
Returns true if the BaseNode is referenced by a FullReference. More... | |
std::list< BaseNode * > | hierarchicallyReferencedNodes () const |
Returns the nodes that are referenced by FullReferences. More... | |
const std::list< Reference > & | references () const |
Returns the list of all References. More... | |
void | addExtension (const Extension &extension) |
Adds an Extension. More... | |
OpcUa_UInt32 | extensionCount () |
Returns the number of Extensions. More... | |
const std::list< Extension > & | extensions () const |
Returns a list of all Extensions. More... | |
const Extension * | extension (const UaString &sName) const |
Returns the Extension with the specified name. More... | |
const Extension * | extension (const UaString &sName, const UaString &sNamespace) const |
Returns the Extension with the specified name and namespace. More... | |
virtual UserDataBase * | userData () const |
Returns the UserDataBase for the BaseNode. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from UaBase::BaseNode | |
BaseNode () | |
Creates a BaseNode. More... | |
Stores the information of a Variable node.
Used by UaNodeSetXmlParser.
UaBase::Variable::Variable | ( | ) |
Creates a Variable.
AccessLevel, UserAccessLevel and MinimumSamplingInterval are set to 0, ValueRank is set to -1, and Historizing is set to false;
UaBase::Variable::Variable | ( | const UaNodeId & | nodeId | ) |
Creates a Variable.
AccessLevel, UserAccessLevel and MinimumSamplingInterval are set to 0, ValueRank is set to -1, and Historizing is set to false;
UaBase::Variable::~Variable | ( | ) |
Destruction.
OpcUa_Byte UaBase::Variable::accessLevel | ( | ) | const |
Returns the AccessLevel.
UaUInt32Array UaBase::Variable::arrayDimensions | ( | ) | const |
Returns the ArrayDimensions.
|
virtual |
Creates FullReferences from References.
Has to be called when all BaseNodes are created.
Reimplemented from UaBase::BaseNode.
|
virtual |
Returns the attribute value for the requested attribute.
If the requested attribute is not valid for a specific node class this method returns OpcUa_BadAttributeIdInvalid.
Reimplemented from UaBase::BaseNode.
OpcUa_Boolean UaBase::Variable::historizing | ( | ) | const |
Returns the Historizing attribute.
OpcUa_Double UaBase::Variable::minimumSamplingInterval | ( | ) | const |
Returns the MinimumSamplingInterval.
UaNodeId UaBase::Variable::modellingRuleId | ( | ) | const |
Returns the NodeId of the ModellingRule.
The ModellingRule is evaluated by the HasModellingRule reference.
|
virtual |
Returns the NodeClass of the BaseNode.
Implements UaBase::BaseNode.
void UaBase::Variable::setAccessLevel | ( | OpcUa_Byte | accessLevel | ) |
Sets the AccessLevel.
void UaBase::Variable::setArrayDimensions | ( | const UaUInt32Array & | arrayDimensions | ) |
Sets the ArrayDimensions.
|
virtual |
Write the attribute value for the requested attribute.
If the requested attribute is not valid for a specific node class this method returns OpcUa_BadAttributeIdInvalid. If the requested attribute is not Writable for a specific node class this method returns OpcUa_BadUserAccessDenied.
Reimplemented from UaBase::BaseNode.
void UaBase::Variable::setDataTypeId | ( | const UaNodeId & | dataTypeId | ) |
Sets the NodeId of the DataType.
void UaBase::Variable::setHistorizing | ( | OpcUa_Boolean | historizing | ) |
Sets the Historizing attribute.
void UaBase::Variable::setMinimumSamplingInterval | ( | OpcUa_Double | minimumSamplingInterval | ) |
Sets the MinimumSamplingInterval.
void UaBase::Variable::setModellingRuleId | ( | const UaNodeId & | modellingRuleId | ) |
Sets the ModellingRule.
Creates a HasModellingRule reference. If a HasModellingRule exists already, the existing reference will be removed.
void UaBase::Variable::setTypeDefinitionId | ( | const UaNodeId & | typeDefinitionId | ) |
Sets the TypeDefinition.
Creates a HasTypeDefinition reference. If a HasTypeDefinition already exists, the existing reference will be removed.
void UaBase::Variable::setUserAccessLevel | ( | OpcUa_Byte | userAccessLevel | ) |
Sets the UserAccessLevel.
void UaBase::Variable::setValue | ( | const UaVariant & | value | ) |
Sets the Value.
void UaBase::Variable::setValueRank | ( | OpcUa_Int32 | valueRank | ) |
Sets the ValueRank.
UaNodeId UaBase::Variable::typeDefinitionId | ( | ) | const |
Returns the NodeId of the TypeDefinition.
The TypeDefinition is evaluated by the HasTypeDefinition reference.
OpcUa_Byte UaBase::Variable::userAccessLevel | ( | ) | const |
Returns the UserAccessLevel.
UaVariant UaBase::Variable::value | ( | ) | const |
Returns the Value.
OpcUa_Int32 UaBase::Variable::valueRank | ( | ) | const |
Returns the ValueRank.