C# Class TestData.HistoryFile

Wraps a file which contains a list of historical values.
Inheritance: IHistoryDataSource
Exibir arquivo Open project: OPCFoundation/UA-.NET

Public Methods

Method Description
FirstRaw ( System.DateTime startTime, bool isForward, bool isReadModified, int &position ) : Opc.Ua.DataValue

Returns the next value in the archive.

NextRaw ( System.DateTime lastTime, bool isForward, bool isReadModified, int &position ) : Opc.Ua.DataValue

Returns the next value in the archive.

Private Methods

Method Description
HistoryFile ( object dataLock, List entries ) : System

Creates a new file.

Method Details

FirstRaw() public method

Returns the next value in the archive.
public FirstRaw ( System.DateTime startTime, bool isForward, bool isReadModified, int &position ) : Opc.Ua.DataValue
startTime System.DateTime The starting time for the search.
isForward bool Whether to search forward in time.
isReadModified bool Whether to return modified data.
position int A index that must be passed to the NextRaw call.
return Opc.Ua.DataValue

NextRaw() public method

Returns the next value in the archive.
public NextRaw ( System.DateTime lastTime, bool isForward, bool isReadModified, int &position ) : Opc.Ua.DataValue
lastTime System.DateTime The timestamp of the last value returned.
isForward bool Whether to search forward in time.
isReadModified bool Whether to return modified data.
position int A index previously returned by the reader.
return Opc.Ua.DataValue