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

Represents a record in the StateFile that contains the state information associated to a HistorianID.
상속: ISupportBinaryImage, IComparable
파일 보기 프로젝트 열기: GridProtectionAlliance/gsf 1 사용 예제들

공개 메소드들

메소드 설명
CompareTo ( object obj ) : int

Compares the current StateRecord object to obj.

Equals ( object obj ) : bool

Determines whether the current StateRecord object is equal to obj.

GenerateBinaryImage ( byte buffer, int startIndex ) : int

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

GetHashCode ( ) : int

Returns the hash code for the current StateRecord object.

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

Initializes StateRecord from the specified buffer.

StateRecord ( int historianID ) : System

Initializes a new instance of the StateRecord class.

StateRecord ( int historianID, byte buffer, int startIndex, int length ) : System

Initializes a new instance of the StateRecord class.

ToString ( ) : string

Returns the text representation of StateRecord object.

메소드 상세

CompareTo() 공개 메소드

Compares the current StateRecord object to obj.
public CompareTo ( object obj ) : int
obj object Object against which the current object is to be compared.
리턴 int

Equals() 공개 메소드

Determines whether the current StateRecord object is equal to obj.
public Equals ( object obj ) : bool
obj object Object against which the current object is to be compared for equality.
리턴 bool

GenerateBinaryImage() 공개 메소드

Generates binary image of the StateRecord 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

GetHashCode() 공개 메소드

Returns the hash code for the current StateRecord object.
public GetHashCode ( ) : int
리턴 int

ParseBinaryImage() 공개 메소드

Initializes StateRecord from the specified buffer.
public ParseBinaryImage ( byte buffer, int startIndex, int length ) : int
buffer byte Binary image to be used for initializing .
startIndex int 0-based starting index of initialization data in the .
length int Valid number of bytes in from .
리턴 int

StateRecord() 공개 메소드

Initializes a new instance of the StateRecord class.
public StateRecord ( int historianID ) : System
historianID int Historian identifier of .
리턴 System

StateRecord() 공개 메소드

Initializes a new instance of the StateRecord class.
public StateRecord ( int historianID, byte buffer, int startIndex, int length ) : System
historianID int Historian identifier of .
buffer byte Binary image to be used for initializing .
startIndex int 0-based starting index of initialization data in the .
length int Valid number of bytes in from .
리턴 System

ToString() 공개 메소드

Returns the text representation of StateRecord object.
public ToString ( ) : string
리턴 string