HistoryManagerBase Class Reference

#include <historymanagerbase.h>

Inheritance diagram for HistoryManagerBase:
Collaboration diagram for HistoryManagerBase:

List of all members.

Public Member Functions

 HistoryManagerBase ()
virtual ~HistoryManagerBase ()
virtual UaStatus readRaw (const ServiceContext &serviceContext, HistoryVariableHandle *pVariableHandle, HistoryReadCPUserDataBase **ppContinuationPoint, OpcUa_TimestampsToReturn timestampsToReturn, OpcUa_UInt32 maxValues, OpcUa_DateTime &startTime, OpcUa_DateTime &endTime, OpcUa_Boolean returnBounds, UaDataValues &dataValues)=0
virtual UaStatus readModified (const ServiceContext &serviceContext, HistoryVariableHandle *pVariableHandle, HistoryReadCPUserDataBase **ppContinuationPoint, OpcUa_TimestampsToReturn timestampsToReturn, OpcUa_UInt32 maxValues, OpcUa_DateTime &startTime, OpcUa_DateTime &endTime, OpcUa_Boolean returnBounds, UaDataValues &dataValues, UaModificationInfo &modificationInformations)
virtual UaStatus readProcessed (const ServiceContext &serviceContext, HistoryVariableHandle *pVariableHandle, HistoryReadCPUserDataBase **ppContinuationPoint, OpcUa_TimestampsToReturn timestampsToReturn, OpcUa_DateTime &startTime, OpcUa_DateTime &endTime, OpcUa_Double resampleInterval, const UaNodeId &aggregateType, OpcUa_AggregateConfiguration aggregateConfiguration, UaDataValues &dataValues)
virtual UaStatus readAtTime (const ServiceContext &serviceContext, HistoryVariableHandle *pVariableHandle, OpcUa_TimestampsToReturn timestampsToReturn, const UaDateTimeArray &requestedTimes, UaDataValues &dataValues)
virtual UaStatus readEvents (const ServiceContext &serviceContext, HistoryVariableHandle *pVariableHandle, HistoryReadCPUserDataBase **ppContinuationPoint, OpcUa_TimestampsToReturn timestampsToReturn, OpcUa_UInt32 numValuesPerNode, OpcUa_DateTime &startTime, OpcUa_DateTime &endTime, const OpcUa_EventFilter &filter, UaHistoryEventFieldLists &events)
virtual UaStatus updateData (const ServiceContext &serviceContext, HistoryVariableHandle *pVariableHandle, OpcUa_PerformUpdateType performInsertReplace, const UaDataValues &updateValue, UaStatusCodeArray &operationResults, UaDiagnosticInfos &operationDiagnosticInfos)
virtual UaStatus updateEvents (const ServiceContext &serviceContext, HistoryVariableHandle *pVariableHandle, OpcUa_PerformUpdateType performInsertReplace, const OpcUa_EventFilter &filter, const UaEventFieldLists &eventData, UaStatusCodeArray &operationResults, UaDiagnosticInfos &operationDiagnosticInfos)
virtual UaStatus deleteRawModified (const ServiceContext &serviceContext, HistoryVariableHandle *pVariableHandle, OpcUa_Boolean isDeleteModified, OpcUa_DateTime &startTime, OpcUa_DateTime &endTime)
virtual UaStatus deleteAtTime (const ServiceContext &serviceContext, HistoryVariableHandle *pVariableHandle, const UaDateTimeArray &requestedTimes, UaStatusCodeArray &operationResults, UaDiagnosticInfos &operationDiagnosticInfos)
virtual UaStatus deleteEvents (const ServiceContext &serviceContext, HistoryVariableHandle *pVariableHandle, const UaByteStringArray &eventIds, UaStatusCodeArray &operationResults, UaDiagnosticInfos &operationDiagnosticInfos)
UaStatus beginHistoryTransaction (HistoryManagerCallback *, const ServiceContext &, OpcUa_UInt32, HistoryManager::TransactionType, OpcUa_TimestampsToReturn, OpcUa_Handle &)
UaStatus beginReadRawModified (OpcUa_Handle, OpcUa_UInt32, HistoryVariableHandle *, HistoryReadCPUserDataBase *, OpcUa_Boolean, OpcUa_UInt32, OpcUa_DateTime &, OpcUa_DateTime &, OpcUa_Boolean)
UaStatus beginReadProcessed (OpcUa_Handle, OpcUa_UInt32, HistoryVariableHandle *, HistoryReadCPUserDataBase *, OpcUa_DateTime &, OpcUa_DateTime &, OpcUa_Double, const OpcUa_NodeId &, OpcUa_AggregateConfiguration)
UaStatus beginReadAtTime (OpcUa_Handle, OpcUa_UInt32, HistoryVariableHandle *, HistoryReadCPUserDataBase *, const UaDateTimeArray &)
UaStatus beginReadEvents (OpcUa_Handle, OpcUa_UInt32, HistoryVariableHandle *, HistoryReadCPUserDataBase *, OpcUa_UInt32, OpcUa_DateTime &, OpcUa_DateTime &, const OpcUa_EventFilter &)
UaStatus beginUpdateData (OpcUa_Handle, OpcUa_UInt32, HistoryVariableHandle *, OpcUa_PerformUpdateType, const UaDataValues &)
UaStatus beginUpdateEvents (OpcUa_Handle, OpcUa_UInt32, HistoryVariableHandle *, OpcUa_PerformUpdateType, const OpcUa_EventFilter &, const UaEventFieldLists &)
UaStatus beginDeleteRawModified (OpcUa_Handle, OpcUa_UInt32, HistoryVariableHandle *, OpcUa_Boolean, OpcUa_DateTime &, OpcUa_DateTime &)
UaStatus beginDeleteAtTime (OpcUa_Handle, OpcUa_UInt32, HistoryVariableHandle *, const UaDateTimeArray &)
UaStatus beginDeleteEvents (OpcUa_Handle, OpcUa_UInt32, HistoryVariableHandle *, const UaByteStringArray &)
UaStatus finishHistoryTransaction (OpcUa_Handle)

Detailed Description

HistoryManager base implementation providing a simpliefied synchronous API. This class simplifies the HistoryManager interface implementation by changing the interface to a single node based synchronous API and by providing a default implementation for most of the function, either returning an error BadHistoryOperationUnsupported or by providing an implementation like for read processed. The only required method to implement in the derived class is the readRawModified method. Other methods can be implemented if the functionality should be provided by the server.


Constructor & Destructor Documentation

HistoryManagerBase::HistoryManagerBase (  )

construction

HistoryManagerBase::~HistoryManagerBase (  ) [virtual]

destruction


Member Function Documentation

UaStatus HistoryManagerBase::beginDeleteAtTime ( OpcUa_Handle  hHistoryManagerContext,
OpcUa_UInt32  callbackHandle,
HistoryVariableHandle pVariableHandle,
const UaDateTimeArray &  requestedTimes 
) [virtual]

Delete raw or modified history values for a node.

Parameters:
hHistoryManagerContextGeneral context for the service calls containing information like history.
callbackHandleHandle for the node in the callback. This handle was passed in to the IOManager with the beginStartMonitoring method.
pVariableHandleVariable handle provided by the NodeManager::getVariableHandle.
requestedTimesthe requested time when to begin to read.
Returns:
Error code.

Implements HistoryManager.

UaStatus HistoryManagerBase::beginDeleteEvents ( OpcUa_Handle  hHistoryManagerContext,
OpcUa_UInt32  callbackHandle,
HistoryVariableHandle pVariableHandle,
const UaByteStringArray &  eventIds 
) [virtual]

Delete events for a node.

Parameters:
hHistoryManagerContextGeneral context for the service calls containing information like history.
callbackHandleHandle for the node in the callback. This handle was passed in to the IOManager with the beginStartMonitoring method.
pVariableHandleVariable handle provided by the NodeManager::getVariableHandle.
eventIdsthe Id of the currently fired Event.
Returns:
Error code.

Implements HistoryManager.

UaStatus HistoryManagerBase::beginDeleteRawModified ( OpcUa_Handle  hHistoryManagerContext,
OpcUa_UInt32  callbackHandle,
HistoryVariableHandle pVariableHandle,
OpcUa_Boolean  isDeleteModified,
OpcUa_DateTime &  startTime,
OpcUa_DateTime &  endTime 
) [virtual]

Delete raw or modified history values for a node.

Parameters:
hHistoryManagerContextGeneral context for the service calls containing information like history.
callbackHandleHandle for the node in the callback. This handle was passed in to the IOManager with the beginStartMonitoring method.
pVariableHandleVariable handle provided by the NodeManager::getVariableHandle.
isDeleteModifieda variable that indicates if the new values is modified or not.
startTimea value when to start processing.
endTimea value when to stop processing.
Returns:
Error code.

Implements HistoryManager.

UaStatus HistoryManagerBase::beginHistoryTransaction ( HistoryManagerCallback pCallback,
const ServiceContext serviceContext,
OpcUa_UInt32  hTransaction,
HistoryManager::TransactionType  ,
OpcUa_TimestampsToReturn  timestampsToReturn,
OpcUa_Handle &  hHistoryManagerContext 
) [virtual]

Start a transaction.

Parameters:
pCallbackCallback interface used for the transaction. The IOManager must use this interface to finish the action for each passed node in the transaction.
serviceContextGeneral context for the service calls containing information like the session object, return diagnostic mask and timeout hint.
hTransactionHandle for the transaction used by the SDK to identify the transaction in the callbacks. This handle was passed in to the IOManager with the beginTransaction method.
transactionTypeType of the transaction. The possible enum values are: READ, WRITE, MONITOR_BEGIN, MONITOR_MODIFY, MONITOR_STOP.
hHistoryManagerContextGeneral context for the service calls containing information like history.
timestampsToReturnThe client selected timestamp to return. Valid enum values are: OpcUa_TimestampsToReturn_Source, OpcUa_TimestampsToReturn_Server, OpcUa_TimestampsToReturn_Both
Returns:
Error code.

Implements HistoryManager.

UaStatus HistoryManagerBase::beginReadAtTime ( OpcUa_Handle  hHistoryManagerContext,
OpcUa_UInt32  callbackHandle,
HistoryVariableHandle pVariableHandle,
HistoryReadCPUserDataBase pContinuationPoint,
const UaDateTimeArray &  requestedTimes 
) [virtual]

Read history values for a node at specific timestamps.

Parameters:
hHistoryManagerContextGeneral context for the service calls containing information like history.
callbackHandleHandle for the node in the callback. This handle was passed in to the IOManager with the beginStartMonitoring method.
pVariableHandleVariable handle provided by the NodeManager::getVariableHandle.
requestedTimesthe requested time when to begin to read.
pContinuationPointThe continuation point data if not all results can be returned in one Read call. Implementers of this interface can store the continuation point data in a derived class.
Returns:
Error code.

Implements HistoryManager.

UaStatus HistoryManagerBase::beginReadEvents ( OpcUa_Handle  hHistoryManagerContext,
OpcUa_UInt32  callbackHandle,
HistoryVariableHandle pVariableHandle,
HistoryReadCPUserDataBase pContinuationPoint,
OpcUa_UInt32  numValuesPerNode,
OpcUa_DateTime &  startTime,
OpcUa_DateTime &  endTime,
const OpcUa_EventFilter &  filter 
) [virtual]

Read event history for a node.

Parameters:
hHistoryManagerContextGeneral context for the service calls containing information like history.
callbackHandleHandle for the node in the callback. This handle was passed in to the IOManager with the beginStartMonitoring method.
pVariableHandleVariable handle provided by the NodeManager::getVariableHandle.
numValuesPerNodethe Number of Values per Node.
startTimea value when to start processing.
pContinuationPointThe continuation point data if not all results can be returned in one Read call. Implementers of this interface can store the continuation point data in a derived class.
endTimea value when to stop processing.
filtera filter for all common Events that can occur.
Returns:
Error code.

Implements HistoryManager.

UaStatus HistoryManagerBase::beginReadProcessed ( OpcUa_Handle  hHistoryManagerContext,
OpcUa_UInt32  callbackHandle,
HistoryVariableHandle pVariableHandle,
HistoryReadCPUserDataBase pContinuationPoint,
OpcUa_DateTime &  startTime,
OpcUa_DateTime &  endTime,
OpcUa_Double  resampleInterval,
const OpcUa_NodeId &  aggregateType,
OpcUa_AggregateConfiguration  aggregateConfiguration 
) [virtual]

Read processed history values for a node.

Parameters:
hHistoryManagerContextGeneral context for the service calls containing information like history.
callbackHandleHandle for the node in the callback. This handle was passed in to the IOManager with the beginStartMonitoring method.
pVariableHandleVariable handle provided by the NodeManager::getVariableHandle.
pContinuationPointThe continuation point data if not all results can be returned in one Read call. Implementers of this interface can store the continuation point data in a derived class.
startTimea value when to start processing.
endTimea value when to stop processing.
resampleIntervalthe interval to resample.
aggregateTypethe aggregate type of the node.
aggregateConfigurationThe aggregate configuration.
Returns:
Error code.

Implements HistoryManager.

UaStatus HistoryManagerBase::beginReadRawModified ( OpcUa_Handle  hHistoryManagerContext,
OpcUa_UInt32  callbackHandle,
HistoryVariableHandle pVariableHandle,
HistoryReadCPUserDataBase pContinuationPoint,
OpcUa_Boolean  bIsReadModified,
OpcUa_UInt32  numValuesPerNode,
OpcUa_DateTime &  startTime,
OpcUa_DateTime &  endTime,
OpcUa_Boolean  returnBounds 
) [virtual]

Read raw or modified history values for a node.

Parameters:
hHistoryManagerContextGeneral context for the service calls containing information like history.
callbackHandleHandle for the node in the callback. This handle was passed in to the IOManager with the beginStartMonitoring method.
pVariableHandleVariable handle provided by the NodeManager::getVariableHandle.
pContinuationPointThe continuation point data if not all results can be returned in one Read call. Implementers of this interface can store the continuation point data in a derived class.
bIsReadModifiedtrue if modified false if not
numValuesPerNodethe Number of Values per Node.
startTimea value when to start processing.
endTimea value when to stop processing.
returnBoundsthe returned bounds of the actual operation.
Returns:
Error code.

Implements HistoryManager.

UaStatus HistoryManagerBase::beginUpdateData ( OpcUa_Handle  hHistoryManagerContext,
OpcUa_UInt32  callbackHandle,
HistoryVariableHandle pVariableHandle,
OpcUa_PerformUpdateType  performInsertReplace,
const UaDataValues &  updateValue 
) [virtual]

Update history values for a node.

Parameters:
hHistoryManagerContextGeneral context for the service calls containing information like history.
callbackHandleHandle for the node in the callback. This handle was passed in to the IOManager with the beginStartMonitoring method.
pVariableHandleVariable handle provided by the NodeManager::getVariableHandle.
performInsertReplacea mode to insert data by replacing the older data.
updateValuea variable to fill with data to update.
Returns:
Error code.

Implements HistoryManager.

UaStatus HistoryManagerBase::beginUpdateEvents ( OpcUa_Handle  hHistoryManagerContext,
OpcUa_UInt32  callbackHandle,
HistoryVariableHandle pVariableHandle,
OpcUa_PerformUpdateType  performInsertReplace,
const OpcUa_EventFilter &  filter,
const UaEventFieldLists &  eventData 
) [virtual]

Update history event for a node.

Parameters:
hHistoryManagerContextGeneral context for the service calls containing information like history.
callbackHandleHandle for the node in the callback. This handle was passed in to the IOManager with the beginStartMonitoring method.
pVariableHandleVariable handle provided by the NodeManager::getVariableHandle.
performInsertReplacea mode to insert data by replacing the older data.
filtera filter for all common Events that can occur.
eventDataa field list of event data.
Returns:
Error code.

Implements HistoryManager.

UaStatus HistoryManagerBase::deleteAtTime ( const ServiceContext serviceContext,
HistoryVariableHandle pVariableHandle,
const UaDateTimeArray &  requestedTimes,
UaStatusCodeArray &  operationResults,
UaDiagnosticInfos &  operationDiagnosticInfos 
) [virtual]

Delete history values at the passed timestamps.

Parameters:
serviceContextGeneral context for the service calls containing information like the session object, return diagnostic mask and timeout hint.
pVariableHandleVariable handle provided by the NodeManager::getVariableHandle. This object contains the information needed by the IOManager to identify the node to read in its context.
requestedTimesThe list of timestamps to delete.
operationResultsThe results for the requested timestamps to delete.
operationDiagnosticInfosThe diagnsotic for the requested timestamps to delete.
Returns:
Error code
UaStatus HistoryManagerBase::deleteEvents ( const ServiceContext serviceContext,
HistoryVariableHandle pVariableHandle,
const UaByteStringArray &  eventIds,
UaStatusCodeArray &  operationResults,
UaDiagnosticInfos &  operationDiagnosticInfos 
) [virtual]

Delete events for a node.

Parameters:
serviceContextGeneral context for the service calls containing information like the session object, return diagnostic mask and timeout hint.
pVariableHandleVariable handle provided by the NodeManager::getVariableHandle. This object contains the information needed by the IOManager to identify the node to read in its context.
eventIdsThe list of EventIds for the events to delete.
operationResultsThe results for the requested events to delete.
operationDiagnosticInfosThe diagnsotic for the requested events to delete.
Returns:
Error code
UaStatus HistoryManagerBase::deleteRawModified ( const ServiceContext serviceContext,
HistoryVariableHandle pVariableHandle,
OpcUa_Boolean  isDeleteModified,
OpcUa_DateTime &  startTime,
OpcUa_DateTime &  endTime 
) [virtual]

Delete raw or modified history values for a node.

Parameters:
serviceContextGeneral context for the service calls containing information like the session object, return diagnostic mask and timeout hint.
pVariableHandleVariable handle provided by the NodeManager::getVariableHandle. This object contains the information needed by the IOManager to identify the node to read in its context.
isDeleteModifiedA flag that indicates if modified values should be deleted instead of raw value.
startTimeThe start time of the time period to delete.
endTimeThe end time of the time period to delete.
Returns:
Error code
UaStatus HistoryManagerBase::finishHistoryTransaction ( OpcUa_Handle  hHistoryManagerContext ) [virtual]

Finish a transaction.

Parameters:
hHistoryManagerContextGeneral context for the service calls containing information like history.
Returns:
Error code.

Implements HistoryManager.

UaStatus HistoryManagerBase::readAtTime ( const ServiceContext serviceContext,
HistoryVariableHandle pVariableHandle,
OpcUa_TimestampsToReturn  timestampsToReturn,
const UaDateTimeArray &  requestedTimes,
UaDataValues &  dataValues 
) [virtual]

Read history values for a node at specific timestamps.

Parameters:
serviceContextGeneral context for the service calls containing information like the session object, return diagnostic mask and timeout hint.
pVariableHandleVariable handle provided by the NodeManager::getVariableHandle.
timestampsToReturnThe client selected timestamp to return. Valid enum values are: OpcUa_TimestampsToReturn_Source, OpcUa_TimestampsToReturn_Server, OpcUa_TimestampsToReturn_Both
requestedTimesThe requested timestamps to read.
dataValuesThe requested values for this operation.
Returns:
Error code.
UaStatus HistoryManagerBase::readEvents ( const ServiceContext serviceContext,
HistoryVariableHandle pVariableHandle,
HistoryReadCPUserDataBase **  ppContinuationPoint,
OpcUa_TimestampsToReturn  timestampsToReturn,
OpcUa_UInt32  numValuesPerNode,
OpcUa_DateTime &  startTime,
OpcUa_DateTime &  endTime,
const OpcUa_EventFilter &  filter,
UaHistoryEventFieldLists &  events 
) [virtual]

Read event history for a node.

Parameters:
serviceContextGeneral context for the service calls containing information like the session object, return diagnostic mask and timeout hint.
pVariableHandleVariable handle provided by the NodeManager::getVariableHandle. This object contains the information needed by the IOManager to identify the node to read in its context.
ppContinuationPointThe continuation point data from a previous Read call. Null if first Read. Implementers of this interface can store the continuation point data in a derived class.
timestampsToReturnThe client selected timestamp to return. Valid enum values are: OpcUa_TimestampsToReturn_Source, OpcUa_TimestampsToReturn_Server, OpcUa_TimestampsToReturn_Both
numValuesPerNodethe Number of Values per Node.
startTimeThe start time of the time period to read.
endTimeThe end time of the time period to read.
filterAn event filter used to select events to read.
eventsA list of events that match the read filter.
Returns:
Error code
UaStatus HistoryManagerBase::readModified ( const ServiceContext serviceContext,
HistoryVariableHandle pVariableHandle,
HistoryReadCPUserDataBase **  ppContinuationPoint,
OpcUa_TimestampsToReturn  timestampsToReturn,
OpcUa_UInt32  maxValues,
OpcUa_DateTime &  startTime,
OpcUa_DateTime &  endTime,
OpcUa_Boolean  returnBounds,
UaDataValues &  dataValues,
UaModificationInfo &  modificationInformations 
) [virtual]

Read modified history values for a node.

Parameters:
serviceContextGeneral context for the service calls containing information like the session object, return diagnostic mask and timeout hint.
pVariableHandleVariable handle provided by the NodeManager::getHistoryVariableHandle.
ppContinuationPointThe continuation point data from a previous Read call. Null if first Read. Implementers of this interface can store the continuation point data in a derived class.
timestampsToReturnThe client selected timestamp to return. Valid enum values are: OpcUa_TimestampsToReturn_Source, OpcUa_TimestampsToReturn_Server, OpcUa_TimestampsToReturn_Both
maxValuesThe maximum number of values to return.
startTimeThe start time of the time period to read.
endTimeThe end time of the time period to read.
returnBoundsFlag that indicates if bounding values should be returned.
dataValuesThe requested values for this operation.
modificationInformationsThe modification information for the requested Values for this operation. The information array will be detached by the SDK.
Returns:
Error code.
UaStatus HistoryManagerBase::readProcessed ( const ServiceContext serviceContext,
HistoryVariableHandle pVariableHandle,
HistoryReadCPUserDataBase **  ppContinuationPoint,
OpcUa_TimestampsToReturn  timestampsToReturn,
OpcUa_DateTime &  startTime,
OpcUa_DateTime &  endTime,
OpcUa_Double  resampleInterval,
const UaNodeId aggregateType,
OpcUa_AggregateConfiguration  aggregateConfiguration,
UaDataValues &  dataValues 
) [virtual]

Read processed history values for a node.

Parameters:
serviceContextGeneral context for the service calls containing information like the session object, return diagnostic mask and timeout hint.
pVariableHandleVariable handle provided by the NodeManager::getVariableHandle.
ppContinuationPointThe continuation point data from a previous Read call. Null if first Read. Implementers of this interface can store the continuation point data in a derived class.
timestampsToReturnThe client selected timestamp to return. Valid enum values are: OpcUa_TimestampsToReturn_Source, OpcUa_TimestampsToReturn_Server, OpcUa_TimestampsToReturn_Both
startTimeThe start time of the time period to read.
endTimeThe end time of the time period to read.
resampleIntervalThe interval to resample.
aggregateTypeThe aggregate type node id.
aggregateConfigurationThe aggregate configuration.
dataValuesThe requested values for this operation.
Returns:
Error code.
virtual UaStatus HistoryManagerBase::readRaw ( const ServiceContext serviceContext,
HistoryVariableHandle pVariableHandle,
HistoryReadCPUserDataBase **  ppContinuationPoint,
OpcUa_TimestampsToReturn  timestampsToReturn,
OpcUa_UInt32  maxValues,
OpcUa_DateTime &  startTime,
OpcUa_DateTime &  endTime,
OpcUa_Boolean  returnBounds,
UaDataValues &  dataValues 
) [pure virtual]

Read raw history values for a node.

Parameters:
serviceContextGeneral context for the service calls containing information like the session object, return diagnostic mask and timeout hint.
pVariableHandleVariable handle provided by the NodeManager::getHistoryVariableHandle.
ppContinuationPointThe continuation point data from a previous Read call. Null if first Read. Implementers of this interface can store the continuation point data in a derived class.
timestampsToReturnThe client selected timestamp to return. Valid enum values are: OpcUa_TimestampsToReturn_Source, OpcUa_TimestampsToReturn_Server, OpcUa_TimestampsToReturn_Both
maxValuesThe maximum number of values to return.
startTimeThe start time of the time period to read.
endTimeThe end time of the time period to read.
returnBoundsFlag that indicates if bounding values should be returned.
dataValuesThe requested values for this operation.
Returns:
Error code.
UaStatus HistoryManagerBase::updateData ( const ServiceContext serviceContext,
HistoryVariableHandle pVariableHandle,
OpcUa_PerformUpdateType  performInsertReplace,
const UaDataValues &  updateValue,
UaStatusCodeArray &  operationResults,
UaDiagnosticInfos &  operationDiagnosticInfos 
) [virtual]

Update history values for a node.

Parameters:
serviceContextGeneral context for the service calls containing information like the session object, return diagnostic mask and timeout hint.
pVariableHandleVariable handle provided by the NodeManager::getVariableHandle. This object contains the information needed by the IOManager to identify the node to read in its context.
performInsertReplaceThe mode to insert data or to replace older data.
updateValueThe list of data values to update.
operationResultsThe results for the requested update values.
operationDiagnosticInfosThe diagnsotic for the requested update values.
Returns:
Error code
UaStatus HistoryManagerBase::updateEvents ( const ServiceContext serviceContext,
HistoryVariableHandle pVariableHandle,
OpcUa_PerformUpdateType  performInsertReplace,
const OpcUa_EventFilter &  filter,
const UaEventFieldLists &  eventData,
UaStatusCodeArray &  operationResults,
UaDiagnosticInfos &  operationDiagnosticInfos 
) [virtual]

Update history events for a node.

Parameters:
serviceContextGeneral context for the service calls containing information like the session object, return diagnostic mask and timeout hint.
pVariableHandleVariable handle provided by the NodeManager::getVariableHandle. This object contains the information needed by the IOManager to identify the node to read in its context.
performInsertReplaceThe mode to insert events or to replace older events.
filterAn event filter used to select events to update.
eventDataA list of events to update.
operationResultsThe results for the requested update events.
operationDiagnosticInfosThe diagnsotic for the requested update events.
Returns:
Error code

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