Derived from UaVariableCache and UaReferenceLists. More...
#include <uagenericnodes.h>
Public Member Functions | |
UaGenericVariable (const UaNodeId &nodeId, const UaQualifiedName &browseName, const UaLocalizedText &displayName, const UaLocalizedText &description, const UaNodeId &typeDefinitionId, const UaVariant &value, const UaNodeId &dataTyp, OpcUa_Int32 valueRank, OpcUa_Byte accessLevel, OpcUa_Byte userAccessLevel, OpcUa_Double minimumSamplingInterval, OpcUa_Boolean historizing) | |
virtual | ~UaGenericVariable () |
UaStatus | browse (const ServiceContext &serviceContext, BrowseContext &browseContext, UaReferenceDescriptions &References) |
virtual UaNodeId | nodeId () const |
virtual UaQualifiedName | browseName () const |
virtual UaLocalizedText | displayName (Session *) const |
virtual OpcUa_Boolean | isDescriptionSupported () const |
virtual UaLocalizedText | description (Session *) const |
virtual OpcUa_Boolean | isWriteMaskSupported () const |
virtual OpcUa_UInt32 | writeMask () const |
virtual OpcUa_Boolean | isUserWriteMaskSupported () const |
virtual OpcUa_UInt32 | userWriteMask (Session *) const |
virtual UaDataValue | value (Session *pSession) |
virtual UaStatus | setValue (Session *pSession, const UaDataValue &dataValue, OpcUa_Boolean checkAccessLevel=OpcUa_True) |
virtual UaNodeId | dataType () const |
virtual OpcUa_Int32 | valueRank () const |
virtual OpcUa_Boolean | isArrayDimensionsSupported () const |
virtual void | arrayDimensions (UaUInt32Array &arrayDimensions) const |
virtual OpcUa_Byte | accessLevel () const |
virtual OpcUa_Byte | userAccessLevel (Session *) const |
virtual OpcUa_Boolean | isMinimumSamplingIntervalSupported () const |
virtual OpcUa_Double | minimumSamplingInterval () const |
virtual OpcUa_Boolean | historizing () const |
OpcUa_NodeClass | nodeClass () const |
UaNodeId | typeDefinitionId () const |
UaNode * | getUaNode () const |
UaReferenceLists * | getUaReferenceLists () const |
virtual void | setWriteMask (OpcUa_UInt32 writeMask) |
virtual UaStatus | setAttributeValue (Session *pSession, OpcUa_Int32 attributeId, const UaDataValue &dataValue, OpcUa_Boolean checkWriteMask) |
Derived from UaVariableCache and UaReferenceLists.
UaGenericVariable::UaGenericVariable | ( | const UaNodeId & | nodeId, |
const UaQualifiedName & | browseName, | ||
const UaLocalizedText & | displayName, | ||
const UaLocalizedText & | description, | ||
const UaNodeId & | typeDefinitionId, | ||
const UaVariant & | value, | ||
const UaNodeId & | dataTyp, | ||
OpcUa_Int32 | valueRank, | ||
OpcUa_Byte | accessLevel, | ||
OpcUa_Byte | userAccessLevel, | ||
OpcUa_Double | minimumSamplingInterval, | ||
OpcUa_Boolean | historizing | ||
) |
construction
UaGenericVariable::~UaGenericVariable | ( | ) | [virtual] |
destruction
virtual OpcUa_Byte UaGenericVariable::accessLevel | ( | ) | const [inline, virtual] |
Get the AccessLevel for the DataVariable.
Implements UaVariable.
void UaGenericVariable::arrayDimensions | ( | UaUInt32Array & | arrayDimensions ) | const [virtual] |
Get the arrayDimensions value for the passed UaNode.
arrayDimensions | the arrayDimensions value for the passed UaNode. |
Implements UaVariable.
UaStatus UaGenericVariable::browse | ( | const ServiceContext & | serviceContext, |
BrowseContext & | browseContext, | ||
UaReferenceDescriptions & | References | ||
) | [virtual] |
Discover the references of a specified node of a view. This method is used to return a list of references and target nodes for the passed node to browse for the services Browse and BrowseNext.
serviceContext | General context for the service calls containing information like the session object, return diagnostic mask and timeout hint. |
browseContext | Browse context for the first browse or the following browse with continuation point. |
References | Array of ReferenceDescription results for the browsed node. |
Implements UaNode.
virtual UaQualifiedName UaGenericVariable::browseName | ( | ) | const [inline, virtual] |
Get the browseName as QualifiedName of the current Node.
Implements UaNode.
virtual UaNodeId UaGenericVariable::dataType | ( | ) | const [inline, virtual] |
Get the DataType for the DataVariable.
Implements UaVariable.
virtual UaLocalizedText UaGenericVariable::description | ( | Session * | ) | const [inline, virtual] |
Get the description as LocalizedText of the current Node.
Implements UaNode.
virtual UaLocalizedText UaGenericVariable::displayName | ( | Session * | ) | const [inline, virtual] |
Get the displayName as LocalizedText of the current Node.
Implements UaNode.
UaNode* UaGenericVariable::getUaNode | ( | ) | const [inline, virtual] |
UaReferenceLists* UaGenericVariable::getUaReferenceLists | ( | ) | const [inline, virtual] |
Get a ReferenceList where all the Nodes are in.
Reimplemented from UaNode.
virtual OpcUa_Boolean UaGenericVariable::historizing | ( | ) | const [inline, virtual] |
Indicates if historizing is available or not.
Implements UaVariable.
virtual OpcUa_Boolean UaGenericVariable::isArrayDimensionsSupported | ( | ) | const [inline, virtual] |
Check if the Node is ArrayDimensionsSupported.
Implements UaVariable.
virtual OpcUa_Boolean UaGenericVariable::isDescriptionSupported | ( | ) | const [inline, virtual] |
virtual OpcUa_Boolean UaGenericVariable::isMinimumSamplingIntervalSupported | ( | ) | const [inline, virtual] |
Check wether a minimum sampling interval is supported.
Implements UaVariable.
virtual OpcUa_Boolean UaGenericVariable::isUserWriteMaskSupported | ( | ) | const [inline, virtual] |
Check if Node is UserWriteMaskSupported.
Implements UaNode.
virtual OpcUa_Boolean UaGenericVariable::isWriteMaskSupported | ( | ) | const [inline, virtual] |
virtual OpcUa_Double UaGenericVariable::minimumSamplingInterval | ( | ) | const [inline, virtual] |
Get the minimum sampling interval of the Node.
Implements UaVariable.
OpcUa_NodeClass UaGenericVariable::nodeClass | ( | ) | const [inline, virtual] |
Get the Nodeclass of the current Node.
Reimplemented from UaVariable.
virtual UaNodeId UaGenericVariable::nodeId | ( | ) | const [inline, virtual] |
UaStatus UaGenericVariable::setAttributeValue | ( | Session * | pSession, |
OpcUa_Int32 | attributeId, | ||
const UaDataValue & | dataValue, | ||
OpcUa_Boolean | checkWriteMask | ||
) | [virtual] |
Sets the value of an attribute of the Node.
[in] | pSession | Interface to the Session context for the method call |
[in] | attributeId | Attribute id indicating the attribute to set |
[in] | dataValue | New value for the attribute |
[out] | checkWriteMask | Flag indicating if the write mask of the node should be checked before setting the new value |
Reimplemented from UaVariable.
UaStatus UaGenericVariable::setValue | ( | Session * | pSession, |
const UaDataValue & | dataValue, | ||
OpcUa_Boolean | checkAccessLevel = OpcUa_True |
||
) | [virtual] |
Sets the current value for the DataVariable.
pSession | Interface to the Session context for the method call |
dataValue | Cached value of the DataVariable. |
checkAccessLevel | checks the Access Level of the current Session. |
Implements UaVariable.
virtual void UaGenericVariable::setWriteMask | ( | OpcUa_UInt32 | writeMask ) | [inline, virtual] |
Sets the write mask attribute.
UaNodeId UaGenericVariable::typeDefinitionId | ( | ) | const [inline, virtual] |
Get the object type NodeId for the server object.
Reimplemented from UaNode.
virtual OpcUa_Byte UaGenericVariable::userAccessLevel | ( | Session * | ) | const [inline, virtual] |
Get the UserAccessLevel for the DataVariable.
Implements UaVariable.
virtual OpcUa_UInt32 UaGenericVariable::userWriteMask | ( | Session * | ) | const [inline, virtual] |
UaDataValue UaGenericVariable::value | ( | Session * | pSession ) | [virtual] |
Sets the current value for the DataVariable.
pSession | Interface to the Session context for the method call |
Implements UaVariable.
virtual OpcUa_Int32 UaGenericVariable::valueRank | ( | ) | const [inline, virtual] |
Get the ValueRank for the DataVariable.
Implements UaVariable.
virtual OpcUa_UInt32 UaGenericVariable::writeMask | ( | ) | const [inline, virtual] |