C# Class GSF.IO.FileStructure.ReadSnapshot

Aquires a snapshot of the file system to browse in an isolated mannor. This is read only and will also block the main file from being deleted. Therefore it is important to release this lock so the file can be deleted after a rollover.
Datei anzeigen Open project: GridProtectionAlliance/openHistorian Class Usage Examples

Public Methods

Method Description
OpenFile ( SubFileName fileName ) : SubFileStream

Opens a ArchiveFileStream that can be used to read/write to the file passed to this function.

OpenFile ( int fileIndex ) : SubFileStream

Opens a ArchiveFileStream that can be used to read the file passed to this function.

Private Methods

Method Description
ReadSnapshot ( DiskIo dataReader ) : System

Creates a readonly copy of a transaction.

Method Details

OpenFile() public method

Opens a ArchiveFileStream that can be used to read/write to the file passed to this function.
public OpenFile ( SubFileName fileName ) : SubFileStream
fileName SubFileName
return SubFileStream

OpenFile() public method

Opens a ArchiveFileStream that can be used to read the file passed to this function.
public OpenFile ( int fileIndex ) : SubFileStream
fileIndex int The index of the file to open.
return SubFileStream