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

Represents the File Allocation Table of an ArchiveFile.
상속: ISupportBinaryImage
파일 보기 프로젝트 열기: GridProtectionAlliance/gsf 1 사용 예제들

Private Properties

프로퍼티 타입 설명
ArchiveFileAllocationTable System
RequestDataBlock ArchiveDataBlock

공개 메소드들

메소드 설명
Extend ( ) : void

Extends the ArchiveFile by one ArchiveDataBlock.

Extend ( int dataBlocksToAdd ) : void

Extends the ArchiveFile by the specified number of ArchiveDataBlocks.

FindDataBlock ( int historianID, bool preRead = true ) : ArchiveDataBlock

Returns the first ArchiveDataBlock in the ArchiveFile for the specified historianID.

FindDataBlocks ( int historianID, TimeTag startTime, TimeTag endTime, bool preRead = true ) : List

Returns all ArchiveDataBlocks in the ArchiveFile for the specified historianID with ArchiveDataPoints between the specified startTime and endTime.

FindDataBlocks ( int historianID, TimeTag startTime, bool preRead = true ) : List

Returns all ArchiveDataBlocks in the ArchiveFile for the specified historianID with ArchiveDataPoint points later than the specified startTime.

FindDataBlocks ( int historianID, bool preRead = true ) : List

Returns all ArchiveDataBlocks in the ArchiveFile for the specified historianID.

FindLastDataBlock ( int historianID, bool preRead = true ) : ArchiveDataBlock

Returns the last ArchiveDataBlock in the ArchiveFile for the specified historianID.

GenerateBinaryImage ( byte buffer, int startIndex ) : int

Generates binary image of the ArchiveFileAllocationTable and copies it into the given buffer, for BinaryLength bytes.

ParseBinaryImage ( byte buffer, int startIndex, int length ) : int

Initializes object by parsing the specified buffer containing a binary image.

This method is never used since constructor parses the point allocation table.

Save ( bool forceFlush = false ) : void

Saves the ArchiveFileAllocationTable data to the ArchiveFile.

비공개 메소드들

메소드 설명
ArchiveFileAllocationTable ( ArchiveFile parent ) : System

Initializes a new instance of the ArchiveFileAllocationTable class.

RequestDataBlock ( int historianID, TimeTag dataTime, int blockIndex ) : ArchiveDataBlock

Returns an ArchiveDataBlock for writing ArchiveDataPoints for the specified historianID.

메소드 상세

Extend() 공개 메소드

Extends the ArchiveFile by one ArchiveDataBlock.
public Extend ( ) : void
리턴 void

Extend() 공개 메소드

Extends the ArchiveFile by the specified number of ArchiveDataBlocks.
public Extend ( int dataBlocksToAdd ) : void
dataBlocksToAdd int Number of s to add to the .
리턴 void

FindDataBlock() 공개 메소드

Returns the first ArchiveDataBlock in the ArchiveFile for the specified historianID.
public FindDataBlock ( int historianID, bool preRead = true ) : ArchiveDataBlock
historianID int Historian identifier whose is to be retrieved.
preRead bool true to pre-read data to locate write cursor.
리턴 ArchiveDataBlock

FindDataBlocks() 공개 메소드

Returns all ArchiveDataBlocks in the ArchiveFile for the specified historianID with ArchiveDataPoints between the specified startTime and endTime.
public FindDataBlocks ( int historianID, TimeTag startTime, TimeTag endTime, bool preRead = true ) : List
historianID int Historian identifier.
startTime TimeTag Start .
endTime TimeTag End .
preRead bool true to pre-read data to locate write cursor.
리턴 List

FindDataBlocks() 공개 메소드

Returns all ArchiveDataBlocks in the ArchiveFile for the specified historianID with ArchiveDataPoint points later than the specified startTime.
public FindDataBlocks ( int historianID, TimeTag startTime, bool preRead = true ) : List
historianID int Historian identifier.
startTime TimeTag Start .
preRead bool true to pre-read data to locate write cursor.
리턴 List

FindDataBlocks() 공개 메소드

Returns all ArchiveDataBlocks in the ArchiveFile for the specified historianID.
public FindDataBlocks ( int historianID, bool preRead = true ) : List
historianID int Historian identifier.
preRead bool true to pre-read data to locate write cursor.
리턴 List

FindLastDataBlock() 공개 메소드

Returns the last ArchiveDataBlock in the ArchiveFile for the specified historianID.
public FindLastDataBlock ( int historianID, bool preRead = true ) : ArchiveDataBlock
historianID int Historian identifier.
preRead bool true to pre-read data to locate write cursor.
리턴 ArchiveDataBlock

GenerateBinaryImage() 공개 메소드

Generates binary image of the ArchiveFileAllocationTable and copies it into the given buffer, for BinaryLength bytes.
is null. /// or is less than 0 -or- /// and will exceed length. ///
public GenerateBinaryImage ( byte buffer, int startIndex ) : int
buffer byte Buffer used to hold generated binary image of the source object.
startIndex int 0-based starting index in the to start writing.
리턴 int

ParseBinaryImage() 공개 메소드

Initializes object by parsing the specified buffer containing a binary image.
This method is never used since constructor parses the point allocation table.
public ParseBinaryImage ( byte buffer, int startIndex, int length ) : int
buffer byte Buffer containing binary image to parse.
startIndex int 0-based starting index in the to start parsing.
length int Valid number of bytes within to read from .
리턴 int

Save() 공개 메소드

Saves the ArchiveFileAllocationTable data to the ArchiveFile.
public Save ( bool forceFlush = false ) : void
forceFlush bool Forces an immediate disk flush for save.
리턴 void