C# 클래스 GSF.Historian.Files.ArchiveDataBlock

Represents a block of ArchiveDataPoints in an ArchiveFile.
파일 보기 프로젝트 열기: GridProtectionAlliance/gsf 1 사용 예제들

공개 메소드들

메소드 설명
Read ( ) : IEnumerable

Reads existing ArchiveDataPoints from the ArchiveDataBlock.

Reset ( ) : void

Resets the ArchiveDataBlock by overwriting existing ArchiveDataPoints with empty ArchiveDataPoints.

Write ( IDataPoint dataPoint, Exception &exception ) : bool

Writes the dataPoint to the ArchiveDataBlock.

Write ( IDataPoint dataPoint, bool suppressExceptions = false ) : bool

Writes the dataPoint to the ArchiveDataBlock.

If suppressExceptions is false, the default value, any encountered exception will be thrown on the call stack.

보호된 메소드들

메소드 설명
OnDataReadException ( Exception ex ) : void

Raises the DataReadException event.

OnDataWriteException ( Exception ex ) : void

Raises the DataWriteException event.

비공개 메소드들

메소드 설명
ArchiveDataBlock ( ArchiveFile parent, int index, int historianID, bool preRead = true ) : System

Initializes a new instance of the ArchiveDataBlock class.

메소드 상세

OnDataReadException() 보호된 메소드

Raises the DataReadException event.
protected OnDataReadException ( Exception ex ) : void
ex System.Exception to send to event.
리턴 void

OnDataWriteException() 보호된 메소드

Raises the DataWriteException event.
protected OnDataWriteException ( Exception ex ) : void
ex System.Exception to send to event.
리턴 void

Read() 공개 메소드

Reads existing ArchiveDataPoints from the ArchiveDataBlock.
public Read ( ) : IEnumerable
리턴 IEnumerable

Reset() 공개 메소드

Resets the ArchiveDataBlock by overwriting existing ArchiveDataPoints with empty ArchiveDataPoints.
public Reset ( ) : void
리턴 void

Write() 공개 메소드

Writes the dataPoint to the ArchiveDataBlock.
public Write ( IDataPoint dataPoint, Exception &exception ) : bool
dataPoint IDataPoint to write.
exception System.Exception Any that may have been encountered while writing.
리턴 bool

Write() 공개 메소드

Writes the dataPoint to the ArchiveDataBlock.
If suppressExceptions is false, the default value, any encountered exception will be thrown on the call stack.
public Write ( IDataPoint dataPoint, bool suppressExceptions = false ) : bool
dataPoint IDataPoint to write.
suppressExceptions bool Set to true to suppress write exceptions; defaults to false.
리턴 bool