UA Server SDK C++ Bundle  1.4.1.271
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
NodeManagerTagFile Class Reference

NodeManager for Tag File. More...

#include <nodemanagertagfile.h>

Inherits NodeManager, IOManager, and TagFileCallback.

Public Member Functions

UaStatus clearNodes ()
 Remove all nodes from the tag file The configured attributes are kept for each namespace.
 
virtual UaStatus startUp (ServerManager *pServerManager)
 Start up NodeManager. More...
 
virtual UaStatus shutDown ()
 Shut down NodeManager. More...
 
virtual UaStatus browse (const ServiceContext &, BrowseContext &, UaReferenceDescriptions &)
 Discover the references of a specified node of a view. More...
 
virtual UaStatus translateBrowsePathToNodeId (const ServiceContext &, const UaNodeId &, UaRelativePath &, UaBrowsePathTargets &)
 Translates a relative browse path to a node id. More...
 
virtual VariableHandlegetVariableHandle (Session *, VariableHandle::ServiceType, OpcUa_NodeId *, OpcUa_Int32) const
 Get the variable handle for the passed node Id. More...
 
virtual HistoryVariableHandlegetHistoryVariableHandle (Session *, HistoryVariableHandle::ServiceType, OpcUa_NodeId *, UaStatus &) const
 Get the history variable handle for the passed node Id if a history manager is assigned.
 
virtual MethodHandlegetMethodHandle (Session *, OpcUa_NodeId *, OpcUa_NodeId *, UaStatus &) const
 Get the method handle for the passed node Id.
 
virtual UaStatus sessionClosed (Session *pSession)
 Notifies the node manager that a session was closed. More...
 
UaStatus beginTransaction (IOManagerCallback *, const ServiceContext &, OpcUa_UInt32, OpcUa_UInt32, OpcUa_Double, OpcUa_TimestampsToReturn, TransactionType, OpcUa_Handle &)
 Start a transaction. More...
 
UaStatus beginStartMonitoring (OpcUa_Handle, OpcUa_UInt32, IOVariableCallback *, VariableHandle *, MonitoringContext &)
 Start monitoring of an item. More...
 
UaStatus beginModifyMonitoring (OpcUa_Handle, OpcUa_UInt32, OpcUa_UInt32, MonitoringContext &)
 Notify IOManager after modifying monitoring parameters of an item. More...
 
UaStatus beginStopMonitoring (OpcUa_Handle, OpcUa_UInt32, OpcUa_UInt32)
 Notify IOManager after stopping monitoring of an item. More...
 
UaStatus beginRead (OpcUa_Handle, OpcUa_UInt32, VariableHandle *, OpcUa_ReadValueId *)
 Read attribute value of a node. More...
 
UaStatus beginWrite (OpcUa_Handle, OpcUa_UInt32, VariableHandle *, OpcUa_WriteValue *)
 Write attribute value of a node. More...
 
UaStatus finishTransaction (OpcUa_Handle)
 Finish a transaction. More...
 
void rootCreated (RootNode *pNode)
 Callback method from TagFile to inform the registered module about the creation of a root node in the tag file.
 
void rootAboutToBeDeleted (RootNode *pNode)
 Callback method from TagFile to inform the registered module that a root node is about to be deleted.
 
void nodeCreated (BaseNode *pNode)
 Callback method from TagFile to inform the registered module about the creation of a node in the tag file.
 
void nodeModified (BaseNode *pNode, TagFileCallback::ChangeMask change)
 Callback method from NodeManagerTagFile to inform the registered module about the modification of a node in the tag file.
 
void nodeAboutToBeDeleted (BaseNode *pNode)
 Callback method from NodeManagerTagFile to inform the registered module about the deletion of a node in the tag file.
 
void setFallbackMethodManager (MethodManager *pMethodManager)
 Set a fallback MethodManager used if Object and Method are not available as UaNode. More...
 
- Public Member Functions inherited from NodeManager
 NodeManager ()
 construction
 
virtual ~NodeManager ()
 destruction
 
virtual UaStatus sessionOpened (Session *)
 Notifies the node manager that a new session was opened. More...
 
virtual UaStatus sessionActivated (Session *)
 Notifies the node manager that a session was activated. More...
 
virtual UaStatus getEventManagers (Session *pSession, OpcUa_NodeId *pNodeId, OpcUa_EventFilter *eventFilter, EventManagerArray &eventManagers) const
 Get a list of EventManager interfaces for an event notifier. More...
 
virtual UaStatus addNode (const ServiceContext &serviceContext, const UaNodeId &parentNodeId, const UaNodeId &referenceTypeId, const UaNodeId &requestedNewNodeId, const UaQualifiedName &browseName, OpcUa_NodeClass nodeClass, const UaExtensionObject &nodeAttributes, const UaNodeId &typeDefinition, UaNodeId &addedNodeId)
 Add node to the NodeManager. More...
 
virtual UaStatus addReference (const ServiceContext &serviceContext, const UaNodeId &sourceNodeId, const UaNodeId &referenceTypeId, OpcUa_Boolean isForward, const UaNodeId &targetNodeId, OpcUa_NodeClass targetNodeClass)
 Add reference to the NodeManager. More...
 
virtual UaStatus deleteNode (const ServiceContext &serviceContext, const UaNodeId &nodeId, OpcUa_Boolean deleteTargetReference)
 Delete node from the NodeManager. More...
 
virtual UaStatus deleteReference (const ServiceContext &serviceContext, const UaNodeId &sourceNodeId, const UaNodeId &referenceTypeId, OpcUa_Boolean isForward, const UaNodeId &targetNodeId, OpcUa_Boolean deleteBidirectional)
 Delete reference from the NodeManager. More...
 
virtual
NodeManagerCrossReferences
getNodeManagerCrossReferences ()
 Get the interface NodeManagerCrossReferences if available. More...
 
virtual NodeManagerConfiggetNodeManagerConfig ()
 Get the interface NodeManagerConfig if available. More...
 
virtual NodeManagerUaNodegetNodeManagerUaNode ()
 Get the interface NodeManagerUaNode if available. More...
 
- Public Member Functions inherited from IOManager
 IOManager ()
 Construction.
 
virtual ~IOManager ()
 Destruction.
 

Additional Inherited Members

- Public Types inherited from IOManager
enum  TransactionType {
  TransactionRead, TransactionWrite, TransactionMonitorBegin, TransactionMonitorModify,
  TransactionMonitorStop, TransactionInvalid
}
 TransactionType enumeration. More...
 

Detailed Description

NodeManager for Tag File.

Member Function Documentation

UaStatus NodeManagerTagFile::beginModifyMonitoring ( OpcUa_Handle  hIOManagerContext,
OpcUa_UInt32  callbackHandle,
OpcUa_UInt32  hIOVariable,
MonitoringContext monitoringContext 
)
virtual

Notify IOManager after modifying monitoring parameters of an item.

Implements IOManager.

UaStatus NodeManagerTagFile::beginRead ( OpcUa_Handle  hIOManagerContext,
OpcUa_UInt32  callbackHandle,
VariableHandle pVariableHandle,
OpcUa_ReadValueId *  pReadValueId 
)
virtual

Read attribute value of a node.

Implements IOManager.

UaStatus NodeManagerTagFile::beginStartMonitoring ( OpcUa_Handle  hIOManagerContext,
OpcUa_UInt32  callbackHandle,
IOVariableCallback pIOVariableCallback,
VariableHandle pVariableHandle,
MonitoringContext monitoringContext 
)
virtual

Start monitoring of an item.

Implements IOManager.

UaStatus NodeManagerTagFile::beginStopMonitoring ( OpcUa_Handle  hIOManagerContext,
OpcUa_UInt32  callbackHandle,
OpcUa_UInt32  hIOVariable 
)
virtual

Notify IOManager after stopping monitoring of an item.

Implements IOManager.

UaStatus NodeManagerTagFile::beginTransaction ( IOManagerCallback pCallback,
const ServiceContext serviceContext,
OpcUa_UInt32  hTransaction,
OpcUa_UInt32  totalItemCountHint,
OpcUa_Double  maxAge,
OpcUa_TimestampsToReturn  timestampsToReturn,
TransactionType  transactionType,
OpcUa_Handle &  hIOManagerContext 
)
virtual

Start a transaction.

Implements IOManager.

UaStatus NodeManagerTagFile::beginWrite ( OpcUa_Handle  hIOManagerContext,
OpcUa_UInt32  callbackHandle,
VariableHandle pVariableHandle,
OpcUa_WriteValue *  pWriteValue 
)
virtual

Write attribute value of a node.

Implements IOManager.

UaStatus NodeManagerTagFile::browse ( const ServiceContext serviceContext,
BrowseContext browseContext,
UaReferenceDescriptions &  References 
)
virtual

Discover the references of a specified node of a view.

Implements NodeManager.

UaStatus NodeManagerTagFile::finishTransaction ( OpcUa_Handle  hIOManagerContext)
virtual

Finish a transaction.

Implements IOManager.

VariableHandle * NodeManagerTagFile::getVariableHandle ( Session pSession,
VariableHandle::ServiceType  serviceType,
OpcUa_NodeId *  pNodeId,
OpcUa_Int32  AttributeId 
) const
virtual

Get the variable handle for the passed node Id.

Implements NodeManager.

UaStatus NodeManagerTagFile::sessionClosed ( Session )
virtual

Notifies the node manager that a session was closed.

The method can be overwritten in a derived class if the implementation needs to know which sessions are active

Returns
Error code

Reimplemented from NodeManager.

void NodeManagerTagFile::setFallbackMethodManager ( MethodManager pMethodManager)

Set a fallback MethodManager used if Object and Method are not available as UaNode.

This MethodManager is used if object and method were not found as UaNode like for conditions without nodes in address space. This MethodManager is called with MethodHandleNodeId containing the NodeIds for object and method.

UaStatus NodeManagerTagFile::shutDown ( )
virtual

Shut down NodeManager.

Implements NodeManager.

UaStatus NodeManagerTagFile::startUp ( ServerManager pServerManager)
virtual

Start up NodeManager.

Implements NodeManager.

UaStatus NodeManagerTagFile::translateBrowsePathToNodeId ( const ServiceContext serviceContext,
const UaNodeId startingNode,
UaRelativePath relativePath,
UaBrowsePathTargets &  browsePathTargets 
)
virtual

Translates a relative browse path to a node id.

Implements NodeManager.


The documentation for this class was generated from the following files: