C++ Based OPC UA Client/Server/PubSub SDK
1.7.6.537
|
HistoryManager base implementation providing a simplified synchronous API. More...
#include <historymanagerbase.h>
Inherits HistoryManager.
Public Member Functions | |
HistoryManagerBase () | |
Creates a HistoryManagerBase object with ReadProcessed and ReadAtTime default implementations activated. | |
HistoryManagerBase (OpcUa_Boolean supportReadProcessed, OpcUa_Boolean supportReadAtTime) | |
Creates a HistoryManagerBase object with the passed in ReadProcessed and ReadAtTime settings. | |
virtual | ~HistoryManagerBase () |
Destroys the HistoryManagerBase object. | |
UaStatus | startUp (ServerManager *pServerManager) |
Start up the HistoryManagerBase object. | |
OpcUa::HistoryServerCapabilitiesType * | pHistoryServerCapabilities () |
Get the HistoryServerCapabilities object used to indicate the supported historical access features. More... | |
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, OpcUa_HistoryReadValueId *pReadValueId, UaDataValues &dataValues)=0 |
Read raw history values for a node. More... | |
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, OpcUa_HistoryReadValueId *pReadValueId, UaDataValues &dataValues, UaModificationInfo &modificationInformations) |
Read modified history values for a node. More... | |
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, OpcUa_HistoryReadValueId *pReadValueId, UaDataValues &dataValues) |
Read processed history values for a node. More... | |
virtual UaStatus | readAtTime (const ServiceContext &serviceContext, HistoryVariableHandle *pVariableHandle, OpcUa_TimestampsToReturn timestampsToReturn, const UaDateTimeArray &requestedTimes, OpcUa_Boolean useSimpleBounds, OpcUa_HistoryReadValueId *pReadValueId, UaDataValues &dataValues) |
Read history values for a node at specific timestamps. More... | |
virtual UaStatus | readEvents (const ServiceContext &serviceContext, HistoryVariableHandle *pVariableHandle, HistoryReadCPUserDataBase **ppContinuationPoint, OpcUa_UInt32 numValuesPerNode, OpcUa_DateTime &startTime, OpcUa_DateTime &endTime, const OpcUa_EventFilter &filter, OpcUa_HistoryReadValueId *pReadValueId, UaHistoryEventFieldLists &events) |
Read event history for a node. More... | |
virtual UaStatus | updateData (const ServiceContext &serviceContext, HistoryVariableHandle *pVariableHandle, OpcUa_PerformUpdateType performInsertReplace, OpcUa_Boolean isStructureUpdate, const UaDataValues &updateValue, UaStatusCodeArray &operationResults, UaDiagnosticInfos &operationDiagnosticInfos) |
Update history data values for a node. More... | |
virtual UaStatus | updateEvents (const ServiceContext &serviceContext, HistoryVariableHandle *pVariableHandle, OpcUa_PerformUpdateType performInsertReplace, const OpcUa_EventFilter &filter, const UaHistoryEventFieldLists &eventData, UaStatusCodeArray &operationResults, UaDiagnosticInfos &operationDiagnosticInfos) |
Update history events for a node. More... | |
virtual UaStatus | deleteRawModified (const ServiceContext &serviceContext, HistoryVariableHandle *pVariableHandle, OpcUa_Boolean isDeleteModified, OpcUa_DateTime &startTime, OpcUa_DateTime &endTime) |
Delete raw or modified history values for a node. More... | |
virtual UaStatus | deleteAtTime (const ServiceContext &serviceContext, HistoryVariableHandle *pVariableHandle, const UaDateTimeArray &requestedTimes, UaStatusCodeArray &operationResults, UaDiagnosticInfos &operationDiagnosticInfos) |
Delete history values at the passed timestamps. More... | |
virtual UaStatus | deleteEvents (const ServiceContext &serviceContext, HistoryVariableHandle *pVariableHandle, const UaByteStringArray &eventIds, UaStatusCodeArray &operationResults, UaDiagnosticInfos &operationDiagnosticInfos) |
Delete events for a node. More... | |
UaStatus | beginHistoryTransaction (HistoryManagerCallback *, const ServiceContext &, OpcUa_UInt32, OpcUa_UInt32, HistoryManager::TransactionType, OpcUa_TimestampsToReturn, OpcUa_Handle &) |
Begins a transaction for historical access. More... | |
UaStatus | beginReadRawModified (OpcUa_Handle, OpcUa_UInt32, HistoryVariableHandle *, HistoryReadCPUserDataBase *, OpcUa_Boolean, OpcUa_UInt32, OpcUa_DateTime &, OpcUa_DateTime &, OpcUa_Boolean, OpcUa_HistoryReadValueId *) |
Read raw or modified history values for a node. More... | |
UaStatus | beginReadProcessed (OpcUa_Handle, OpcUa_UInt32, HistoryVariableHandle *, HistoryReadCPUserDataBase *, OpcUa_DateTime &, OpcUa_DateTime &, OpcUa_Double, const OpcUa_NodeId &, OpcUa_AggregateConfiguration, OpcUa_HistoryReadValueId *) |
Read processed history values for a node. More... | |
UaStatus | beginReadAtTime (OpcUa_Handle, OpcUa_UInt32, HistoryVariableHandle *, HistoryReadCPUserDataBase *, const UaDateTimeArray &, OpcUa_Boolean, OpcUa_HistoryReadValueId *) |
Read history values for a node at specific timestamps. More... | |
UaStatus | beginReadEvents (OpcUa_Handle, OpcUa_UInt32, HistoryVariableHandle *, HistoryReadCPUserDataBase *, OpcUa_UInt32, OpcUa_DateTime &, OpcUa_DateTime &, const OpcUa_EventFilter &, OpcUa_HistoryReadValueId *) |
Read event history for a node. More... | |
UaStatus | beginUpdateData (OpcUa_Handle, OpcUa_UInt32, HistoryVariableHandle *, OpcUa_PerformUpdateType, OpcUa_Boolean, const UaDataValues &) |
Update history values for a node. More... | |
UaStatus | beginUpdateEvents (OpcUa_Handle, OpcUa_UInt32, HistoryVariableHandle *, OpcUa_PerformUpdateType, const OpcUa_EventFilter &, const UaHistoryEventFieldLists &) |
Update history event for a node. More... | |
UaStatus | beginDeleteRawModified (OpcUa_Handle, OpcUa_UInt32, HistoryVariableHandle *, OpcUa_Boolean, OpcUa_DateTime &, OpcUa_DateTime &) |
Delete raw or modified history values for a node. More... | |
UaStatus | beginDeleteAtTime (OpcUa_Handle, OpcUa_UInt32, HistoryVariableHandle *, const UaDateTimeArray &) |
Delete history values at given times. More... | |
UaStatus | beginDeleteEvents (OpcUa_Handle, OpcUa_UInt32, HistoryVariableHandle *, const UaByteStringArray &) |
Delete events for a node. More... | |
UaStatus | finishHistoryTransaction (OpcUa_Handle) |
Finish a transaction. More... | |
UaStatus | getSteppedPropertyValue (const UaNodeId &variableNodeId, const ServiceContext &serviceContext, bool &bStepped) |
Read the stepped property in the HA Configuration for a given History Variable. More... | |
UaStatus | getAggregateConfiguration (const UaNodeId &variableNodeId, const ServiceContext &serviceContext, OpcUa_AggregateConfiguration &aggregateConfiguration) |
Read all properties in the AggregateConfiguration of the HA Configuration for a given History Variable. More... | |
Public Member Functions inherited from HistoryManager | |
HistoryManager () | |
construction | |
virtual | ~HistoryManager () |
destruction | |
virtual UaStatus | cancelHistoryTransaction (OpcUa_Handle hHistoryManagerContext) |
Canceles the transaction for historical access. More... | |
Additional Inherited Members | |
Public Types inherited from HistoryManager | |
enum | TransactionType { TransactionReadEvents, TransactionReadRaw, TransactionReadModified, TransactionReadProcessed, TransactionReadAtTime, TransactionUpdateData, TransactionUpdateStructureData, TransactionUpdateEvents, TransactionDeleteData, TransactionDeleteAtTime, TransactionDeleteEvents } |
TransactionType enumeration. More... | |
HistoryManager base implementation providing a simplified 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.
|
virtual |
Delete history values at given times.
hHistoryManagerContext | Handle provided by the HistoryManager in beginHistoryTransaction used to identify the transaction context for this call. |
callbackHandle | Handle for the variable in the callback. |
pVariableHandle | Variable handle provided by the NodeManager::getHistoryVariableHandle. This object contains the information needed by the HistoryManager to identify the variable to delete in its context. |
requestedTimes | The list of timestamps to delete. |
Implements HistoryManager.
|
virtual |
Delete events for a node.
hHistoryManagerContext | Handle provided by the HistoryManager in beginHistoryTransaction used to identify the transaction context for this call. |
callbackHandle | Handle for the variable in the callback. |
pVariableHandle | Variable handle provided by the NodeManager::getVariableHandle. This object contains the information needed by the IOManager to identify the node to read in its context. |
eventIds | The list of EventIds for the events to delete. |
Implements HistoryManager.
|
virtual |
Delete raw or modified history values for a node.
hHistoryManagerContext | Handle provided by the HistoryManager in beginHistoryTransaction used to identify the transaction context for this call. |
callbackHandle | Handle for the variable in the callback. |
pVariableHandle | Variable handle provided by the NodeManager::getHistoryVariableHandle. This object contains the information needed by the HistoryManager to identify the variable to delete in its context. |
isDeleteModified | A flag that indicates if modified values should be deleted instead of raw value. |
startTime | The start time of the time period to delete. |
endTime | The end time of the time period to delete. |
Implements HistoryManager.
|
virtual |
Begins a transaction for historical access.
pCallback | Callback interface used for the transaction. The HistoryManager must use this interface to finish the action for each passed variable in the transaction. |
serviceContext | General context for the service calls containing information like the session object, return diagnostic mask and timeout hint. |
hTransaction | Handle for the transaction used by the SDK to identify the transaction in the callbacks. The HistoryManager must store this handle and use it in callbacks to HistoryManagerCallback |
totalItemCountHint | A hint for the HistoryManager about the total number of variables in the transaction. The HistoryManager may not be responsible for all variables but he can use this hint if he wants to optimize memory allocation for further processing. |
transactionType | Type of the history transaction. |
timestampsToReturn | The client selected timestamp to return. Valid enum values are: OpcUa_TimestampsToReturn_Source, OpcUa_TimestampsToReturn_Server, OpcUa_TimestampsToReturn_Both |
hHistoryManagerContext | Handle provided by the HistoryManager to identify the transaction in the following begin calls. |
Implements HistoryManager.
|
virtual |
Read history values for a node at specific timestamps.
hHistoryManagerContext | Handle provided by the HistoryManager in beginHistoryTransaction used to identify the transaction context for this call. |
callbackHandle | Handle for the variable in the callback. |
pVariableHandle | Variable handle provided by the NodeManager::getHistoryVariableHandle. This object contains the information needed by the HistoryManager to identify the variable to read in its context. |
pContinuationPoint | The 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. |
requestedTimes | The requested timestamps to read. |
useSimpleBounds | Use SimpleBounds to determine the value at the specific timestamp. |
pReadValueId | Context for the node to read. The context contains the IndexRange and the DataEncoding requested by the client. The other parameters of this context are already handled by the HistoryVariableHandle and the SDK. |
Implements HistoryManager.
|
virtual |
Read event history for a node.
hHistoryManagerContext | Handle provided by the HistoryManager in beginHistoryTransaction used to identify the transaction context for this call. |
callbackHandle | Handle for the variable in the callback. |
pVariableHandle | Variable handle provided by the NodeManager::getHistoryVariableHandle. This object contains the information needed by the HistoryManager to identify the variable to read in its context. |
pContinuationPoint | The 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. |
numValuesPerNode | The maximum number of values per Node to return. |
startTime | The start time of the time period to read. |
endTime | The end time of the time period to read. |
filter | An event filter used to select events to read. |
pReadValueId | Context for the node to read. The context contains the IndexRange and the DataEncoding requested by the client. The other parameters of this context are already handled by the HistoryVariableHandle and the SDK. |
Implements HistoryManager.
|
virtual |
Read processed history values for a node.
hHistoryManagerContext | Handle provided by the HistoryManager in beginHistoryTransaction used to identify the transaction context for this call. |
callbackHandle | Handle for the variable in the callback. |
pVariableHandle | Variable handle provided by the NodeManager::getHistoryVariableHandle. This object contains the information needed by the HistoryManager to identify the variable to read in its context. |
pContinuationPoint | The 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. |
startTime | The start time of the time period to read. |
endTime | The end time of the time period to read. |
resampleInterval | The interval to re sample. |
aggregateType | The aggregate type node id. |
aggregateConfiguration | The aggregate configuration. |
pReadValueId | Context for the node to read. The context contains the IndexRange and the DataEncoding requested by the client. The other parameters of this context are already handled by the HistoryVariableHandle and the SDK. |
Implements HistoryManager.
|
virtual |
Read raw or modified history values for a node.
hHistoryManagerContext | Handle provided by the HistoryManager in beginHistoryTransaction used to identify the transaction context for this call. |
callbackHandle | Handle for the variable in the callback. |
pVariableHandle | Variable handle provided by the NodeManager::getHistoryVariableHandle. This object contains the information needed by the HistoryManager to identify the variable to read in its context. |
pContinuationPoint | The 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. |
bIsReadModified | true if modified data should be read - false if raw data should be read. |
numValuesPerNode | The maximum number of values per Node to return. |
startTime | The start time of the time period to read. |
endTime | The end time of the time period to read. |
returnBounds | Flag that indicates if bounding values should be returned. |
pReadValueId | Context for the node to read. The context contains the IndexRange and the DataEncoding requested by the client. The other parameters of this context are already handled by the HistoryVariableHandle and the SDK. |
Implements HistoryManager.
|
virtual |
Update history values for a node.
hHistoryManagerContext | Handle provided by the HistoryManager in beginHistoryTransaction used to identify the transaction context for this call. |
callbackHandle | Handle for the variable in the callback. |
pVariableHandle | Variable handle provided by the NodeManager::getHistoryVariableHandle. This object contains the information needed by the HistoryManager to identify the variable to update in its context. |
performInsertReplace | The mode to insert data or to replace data. |
isStructureUpdate | Flag indicating if the provided data is meta data like anotations describing an entry in the history database |
updateValue | The data values to update. |
Implements HistoryManager.
|
virtual |
Update history event for a node.
hHistoryManagerContext | Handle provided by the HistoryManager in beginHistoryTransaction used to identify the transaction context for this call. |
callbackHandle | Handle for the variable in the callback. |
pVariableHandle | Variable handle provided by the NodeManager::getHistoryVariableHandle. This object contains the information needed by the HistoryManager to identify the variable to update in its context. |
performInsertReplace | The mode to insert events or to replace events. |
filter | An event filter used to select the event to update. |
eventData | A list of event data to update. |
Implements HistoryManager.
|
virtual |
Delete history values at the passed timestamps.
The default implementation of this method returns OpcUa_BadHistoryOperationUnsupported to indicate that update is not supported. If the HistoryManager supports update, the derived class must overwrite this method with an implementation that executes the update.
serviceContext | General context for the service calls containing information like the session object, return diagnostic mask and timeout hint. |
pVariableHandle | Variable handle provided by the NodeManager::getVariableHandle. This object contains the information needed by the IOManager to identify the node to read in its context. |
requestedTimes | The list of timestamps to delete. |
operationResults | The results for the requested timestamps to delete. |
operationDiagnosticInfos | The diagnostic for the requested timestamps to delete. |
|
virtual |
Delete events for a node.
The default implementation of this method returns OpcUa_BadHistoryOperationUnsupported to indicate that update is not supported. If the HistoryManager supports update, the derived class must overwrite this method with an implementation that executes the update.
serviceContext | General context for the service calls containing information like the session object, return diagnostic mask and timeout hint. |
pVariableHandle | Variable handle provided by the NodeManager::getVariableHandle. This object contains the information needed by the IOManager to identify the node to read in its context. |
eventIds | The list of EventIds for the events to delete. |
operationResults | The results for the requested events to delete. |
operationDiagnosticInfos | The diagnostic for the requested events to delete. |
|
virtual |
Delete raw or modified history values for a node.
The default implementation of this method returns OpcUa_BadHistoryOperationUnsupported to indicate that update is not supported. If the HistoryManager supports update, the derived class must overwrite this method with an implementation that executes the update.
serviceContext | General context for the service calls containing information like the session object, return diagnostic mask and timeout hint. |
pVariableHandle | Variable handle provided by the NodeManager::getVariableHandle. This object contains the information needed by the IOManager to identify the node to read in its context. |
isDeleteModified | A flag that indicates if modified values should be deleted instead of raw value. |
startTime | The start time of the time period to delete. |
endTime | The end time of the time period to delete. |
|
virtual |
Finish a transaction.
hHistoryManagerContext | General context for the service calls containing information like history. |
Implements HistoryManager.
UaStatus HistoryManagerBase::getAggregateConfiguration | ( | const UaNodeId & | variableNodeId, |
const ServiceContext & | serviceContext, | ||
OpcUa_AggregateConfiguration & | aggregateConfiguration | ||
) |
Read all properties in the AggregateConfiguration of the HA Configuration for a given History Variable.
Calls translateBrowsePathToNodeId following "HA Configuration" and "AggregateConfiguration" to get the NodeId of the AggregateConfiguration. From there calls translateBrowsePathToNodeId again for each property and read the value. If any of the steps fails this method returns a bad statuscode.
variableNodeId | NodeId of the History Variable |
serviceContext | General context for the service calls containing information like the session object, return diagnostic mask and timeout hint. |
aggregateConfiguration | Contains all values for the AggregateConfiguration properties. |
UaStatus HistoryManagerBase::getSteppedPropertyValue | ( | const UaNodeId & | variableNodeId, |
const ServiceContext & | serviceContext, | ||
bool & | bStepped | ||
) |
Read the stepped property in the HA Configuration for a given History Variable.
Calls translateBrowsePathToNodeId following "HA Configuration" and "Stepped" to get the NodeId of the stepped property. Then read the value. If any of the steps fails this method returns a bad statuscode.
variableNodeId | NodeId of the History Variable |
serviceContext | General context for the service calls containing information like the session object, return diagnostic mask and timeout hint. |
bStepped | The value of the stepped property. |
OpcUa::HistoryServerCapabilitiesType * HistoryManagerBase::pHistoryServerCapabilities | ( | ) |
Get the HistoryServerCapabilities object used to indicate the supported historical access features.
Users of this class can set the supported historical access features through this object. It is strongly recommended to set only supported features to true since other modules of the server may support additional features.
|
virtual |
Read history values for a node at specific timestamps.
The default implementation of this method implements read at specific timestamps by using the readRaw method of this class. This functionality can be deactivated when creating the HistoryManagerBase instance.
serviceContext | General context for the service calls containing information like the session object, return diagnostic mask and timeout hint. |
pVariableHandle | Variable handle provided by the NodeManager::getVariableHandle. |
timestampsToReturn | The client selected timestamp to return. Valid enum values are: OpcUa_TimestampsToReturn_Source, OpcUa_TimestampsToReturn_Server, OpcUa_TimestampsToReturn_Both |
requestedTimes | The requested timestamps to read. |
useSimpleBounds | Use SimpleBounds to determine the value at the specific timestamp. |
pReadValueId | Context for the node to read. The context contains the IndexRange and the DataEncoding requested by the client. The other parameters of this context are already handled by the HistoryVariableHandle and the SDK. |
dataValues | The requested values for this operation. |
|
virtual |
Read event history for a node.
The default implementation of this method returns OpcUa_BadHistoryOperationUnsupported to indicate that reading of event history is not supported. If the HistoryManager supports reading of event history, the derived class must overwrite this method with an implementation that delivers the event history.
serviceContext | General context for the service calls containing information like the session object, return diagnostic mask and timeout hint. |
pVariableHandle | Variable handle provided by the NodeManager::getVariableHandle. This object contains the information needed by the IOManager to identify the node to read in its context. |
ppContinuationPoint | The 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. |
numValuesPerNode | the Number of Values per Node. |
startTime | The start time of the time period to read. |
endTime | The end time of the time period to read. |
filter | An event filter used to select events to read. |
pReadValueId | Context for the node to read. The context contains the IndexRange and the DataEncoding requested by the client. The other parameters of this context are already handled by the HistoryVariableHandle and the SDK. |
events | A list of events that match the read filter. |
|
virtual |
Read modified history values for a node.
The default implementation of this method returns OpcUa_GoodNoData to indicate that there is no modified data available. If the HistoryManager supports modified data, the derived class must overwrite this method with an implementation that delivers the modified data.
serviceContext | General context for the service calls containing information like the session object, return diagnostic mask and timeout hint. |
pVariableHandle | Variable handle provided by the NodeManager::getHistoryVariableHandle. |
ppContinuationPoint | The 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. The pointer to the continuation point object must be deleted in the method and must be set to NULL. A new continuation point can be created, queued in the Session and assigned to this parameter as out value if necessary. |
timestampsToReturn | The client selected timestamp to return. Valid enum values are: OpcUa_TimestampsToReturn_Source, OpcUa_TimestampsToReturn_Server, OpcUa_TimestampsToReturn_Both |
maxValues | The maximum number of values to return. |
startTime | The start time of the time period to read. |
endTime | The end time of the time period to read. |
returnBounds | Flag that indicates if bounding values should be returned. |
pReadValueId | Context for the node to read. The context contains the IndexRange and the DataEncoding requested by the client. The other parameters of this context are already handled by the HistoryVariableHandle and the SDK. |
dataValues | The requested values for this operation. |
modificationInformations | The modification information for the requested Values for this operation. The information array will be detached by the SDK. |
|
virtual |
Read processed history values for a node.
The default implementation of this method implements all aggregate calculations defined in the OPC UA Aggregates specification by using the readRaw method of this class. The calculation can be deactivated when creating the HistoryManagerBase instance.
serviceContext | General context for the service calls containing information like the session object, return diagnostic mask and timeout hint. |
pVariableHandle | Variable handle provided by the NodeManager::getVariableHandle. |
ppContinuationPoint | The 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. The pointer to the continuation point object must be deleted in the method and must be set to NULL. A new continuation point can be created, queued in the Session and assigned to this parameter as out value if necessary. |
timestampsToReturn | The client selected timestamp to return. Valid enum values are: OpcUa_TimestampsToReturn_Source, OpcUa_TimestampsToReturn_Server, OpcUa_TimestampsToReturn_Both |
startTime | The start time of the time period to read. |
endTime | The end time of the time period to read. |
resampleInterval | The interval to re sample. |
aggregateType | The aggregate type node id. |
aggregateConfiguration | The aggregate configuration. |
pReadValueId | Context for the node to read. The context contains the IndexRange and the DataEncoding requested by the client. The other parameters of this context are already handled by the HistoryVariableHandle and the SDK. |
dataValues | The requested values for this operation. |
|
pure virtual |
Read raw history values for a node.
This method is pure virtual and must be implemented by a derived class. Implementation of this method is the minimum requirement for HistoryRead support.
serviceContext | General context for the service calls containing information like the session object, return diagnostic mask and timeout hint. |
pVariableHandle | Variable handle provided by the NodeManager::getHistoryVariableHandle. |
ppContinuationPoint | The 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. The pointer to the continuation point object must be deleted in the method and must be set to NULL. A new continuation point can be created, queued in the Session and assigned to this parameter as out value if necessary. |
timestampsToReturn | The client selected timestamp to return. Valid enum values are: OpcUa_TimestampsToReturn_Source, OpcUa_TimestampsToReturn_Server, OpcUa_TimestampsToReturn_Both |
maxValues | The maximum number of values to return. |
startTime | The start time of the time period to read. |
endTime | The end time of the time period to read. |
returnBounds | Flag that indicates if bounding values should be returned. |
pReadValueId | Context for the node to read. The context contains the IndexRange and the DataEncoding requested by the client. The other parameters of this context are already handled by the HistoryVariableHandle and the SDK. |
dataValues | The requested values for this operation. |
|
virtual |
Update history data values for a node.
The default implementation of this method returns OpcUa_BadHistoryOperationUnsupported to indicate that update is not supported. If the HistoryManager supports update, the derived class must overwrite this method with an implementation that executes the update.
serviceContext | General context for the service calls containing information like the session object, return diagnostic mask and timeout hint. |
pVariableHandle | Variable handle provided by the NodeManager::getVariableHandle. This object contains the information needed by the IOManager to identify the node to read in its context. |
performInsertReplace | The mode to insert data or to replace older data. |
isStructureUpdate | Flag indicating if the provided data is meta data like anotations describing an entry in the history database |
updateValue | The list of data values to update. |
operationResults | The results for the requested update values. |
operationDiagnosticInfos | The diagnostic for the requested update values. |
|
virtual |
Update history events for a node.
The default implementation of this method returns OpcUa_BadHistoryOperationUnsupported to indicate that update is not supported. If the HistoryManager supports update, the derived class must overwrite this method with an implementation that executes the update.
serviceContext | General context for the service calls containing information like the session object, return diagnostic mask and timeout hint. |
pVariableHandle | Variable handle provided by the NodeManager::getVariableHandle. This object contains the information needed by the IOManager to identify the node to read in its context. |
performInsertReplace | The mode to insert events or to replace older events. |
filter | An event filter used to select events to update. |
eventData | A list of events to update. |
operationResults | The results for the requested update events. |
operationDiagnosticInfos | The diagnsotic for the requested update events. |