Interface for OPC UA Object nodes created and managed with the SDK. More...

#include <uabasenodes.h>

Inheritance diagram for UaObject:
Collaboration diagram for UaObject:

List of all members.

Public Member Functions

 UaObject ()
virtual OpcUa_Byte eventNotifier () const =0
virtual MethodManagergetMethodManager (UaMethod *pMethod) const
OpcUa_NodeClass nodeClass () const
virtual void getAttributeValue (Session *pSession, OpcUa_Int32 attributeId, UaDataValue &uaDataValue)

Protected Member Functions

virtual ~UaObject ()

Detailed Description

Interface for OPC UA Object nodes created and managed with the SDK.

The class is derived from the interface UaNode. Classes implementing the interface UaObject must also implement the interface UaNode. OPC UA Objects are used to represent systems, system components, real-world objects and software objects. They have the NodeClass Object. The detailed description of Objects and their attributes can be found in the general description of the Object node class.
For the use of the toolkit level of the SDK where the nodes are managed by the SDK, all Object nodes must implement this interface.


Constructor & Destructor Documentation

UaObject::~UaObject (  ) [protected, virtual]

Destruction of the UaObject. The object is reference counted and can not be deleted directly. The methods addReference and releaseReference are used to manage the reference to this object.

UaObject::UaObject (  )

Construction of the UaObject. The object is reference counted and can not be deleted directly. The reference counter is set to one after the object is created. If the object was successfully added to a NodeManager using the methods NodeManagerConfig::addUaNode or NodeManagerConfig::addNodeAndReference the NodeManager will release this reference during shut down. If the object was not added to a NodeManager, it must be deleted using the releaseReference method. If the interface pointer is used in other places, the availablity of the object must be ensured by incrementing the reference counter with addReference when the pointer is stored somewhere and decremented with releaseReference if the interface pointer is not longer needed.


Member Function Documentation

virtual OpcUa_Byte UaObject::eventNotifier (  ) const [pure virtual]

Returns the value of the EventNotifier attribute.
The EventNotifier Attribute is used to indicate if the Node can be used to subscribe to Events or the read / write historic Events.
The EventNotifier is an 8-bit unsigned integer used as bit field with the following bit fields:

DefineValueBitDescription
OpcUa_EventNotifiers_None0x0The Object does not produce events and has no event history.
OpcUa_EventNotifiers_SubscribeToEvents0x10The Object produces event notifications.
1Reserved for future use. Must always be zero.
OpcUa_EventNotifiers_HistoryRead0x42The Object has an event history which may be read.
OpcUa_EventNotifiers_HistoryWrite0x83The Object has an event history which may be updated.

The second two bits also indicate if the history of the Events is available via the OPC UA server.

Returns:
The value of the EventNotifier attribute.

Implemented in OpcUa::BaseObjectType, UaStateMachineType, UaFolder, UaAreaFolder, UaGenericObject, UaObjectServer, UaObjectServerCapabilities, UaModelingRule, UaObjectServerDiagnostic, and UaObjectVendorServerInfo.

void UaObject::getAttributeValue ( Session pSession,
OpcUa_Int32  attributeId,
UaDataValue uaDataValue 
) [virtual]

Gets the value of an attribute of the Node.

Parameters:
[in]pSessionInterface to the Session context for the method call
[in]attributeIdAttribute id indicating the attribute to return
[out]uaDataValueThe value of the attribute or the status code for the attribute

Reimplemented from UaNode.

MethodManager * UaObject::getMethodManager ( UaMethod pMethod ) const [virtual]

Get the MethodManager interface for a method of this object.

Parameters:
pMethodThe method object the manager is requested for.
Returns:
The MethodManager interface responsible for the method.

Reimplemented in OpcUa::BaseObjectType, UaStateMachineType, UaGenericObject, UaObjectServerCapabilities, UaModelingRule, UaObjectServerDiagnostic, and UaObjectVendorServerInfo.

OpcUa_NodeClass UaObject::nodeClass (  ) const [inline, virtual]

Get the node class of the Node.

Returns:
The node class Object for the object node.

Implements UaNode.

Reimplemented in UaGenericObject.


The documentation for this class was generated from the following files:
  • /home/buildbot/work/uasdkcpp/src/uaserver/uaservercpp/coremodule/uabasenodes.h
  • /home/buildbot/work/uasdkcpp/src/uaserver/uaservercpp/coremodule/uabasenodes.cpp