C# 클래스 GSF.IO.FileStructure.IndexParser

This class provides passthrough properties for the IndexMapper class as well follows the directions of the Index Mapper to find the data cluster that contains the point in question.
상속: IndexMapper
파일 보기 프로젝트 열기: GridProtectionAlliance/openHistorian 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
DataClusterAddress uint
FirstIndirectBlockAddress uint
FourthIndirectBlockAddress uint
SecondIndirectBlockAddress uint
ThirdIndirectBlockAddress uint

공개 메소드들

메소드 설명
ClearIndexCache ( IndexParser mostRecentParser ) : void

Resets the index cache with the information from the supplied mostRecentParser

IndexParser ( SubFileDiskIoSessionPool ioSessions ) : GSF.IO.FileStructure.Media

Creates a new instance of this class.

SetPositionAndLookup ( uint positionIndex ) : void

Determines if the current sector contains the position passed. If not, it updates the current sector to the one that contains the passed position.

VirtualToPhysical ( uint positionIndex ) : uint

This function will also call IndexMapper.MapPosition so after it returns, the current block data will be updated.

비공개 메소드들

메소드 설명
GetBlockIndexValue ( uint blockIndex, int offset, BlockType blockType, uint blockBaseIndex ) : uint

This uses the (blockIndex,offset) values to determine what the next block index is. This also has consistency checks to determine if the file is inconsistent (potentially corruption)

UpdateBlockInformation ( ) : void

Looks up the physical/virtual block positions for the address given.

메소드 상세

ClearIndexCache() 공개 메소드

Resets the index cache with the information from the supplied mostRecentParser
public ClearIndexCache ( IndexParser mostRecentParser ) : void
mostRecentParser IndexParser
리턴 void

IndexParser() 공개 메소드

Creates a new instance of this class.
public IndexParser ( SubFileDiskIoSessionPool ioSessions ) : GSF.IO.FileStructure.Media
ioSessions SubFileDiskIoSessionPool IoSessions to use to read from this disk
리턴 GSF.IO.FileStructure.Media

SetPositionAndLookup() 공개 메소드

Determines if the current sector contains the position passed. If not, it updates the current sector to the one that contains the passed position.
public SetPositionAndLookup ( uint positionIndex ) : void
positionIndex uint The position to navigate to indexed to the block data block size.
리턴 void

VirtualToPhysical() 공개 메소드

This function will also call IndexMapper.MapPosition so after it returns, the current block data will be updated.
public VirtualToPhysical ( uint positionIndex ) : uint
positionIndex uint The virtual index address.
리턴 uint

프로퍼티 상세

DataClusterAddress 보호되어 있는 프로퍼티

The address of the first block of the data cluster.
protected uint DataClusterAddress
리턴 uint

FirstIndirectBlockAddress 보호되어 있는 프로퍼티

The address of the first indirect block
protected uint FirstIndirectBlockAddress
리턴 uint

FourthIndirectBlockAddress 보호되어 있는 프로퍼티

The address of the third indirect block
protected uint FourthIndirectBlockAddress
리턴 uint

SecondIndirectBlockAddress 보호되어 있는 프로퍼티

The address of the second indirect block
protected uint SecondIndirectBlockAddress
리턴 uint

ThirdIndirectBlockAddress 보호되어 있는 프로퍼티

The address of the third indirect block
protected uint ThirdIndirectBlockAddress
리턴 uint