C# 클래스 GSF.PQDIF.Physical.ScalarElement

Represents an Element which is a single value in a PQDIF file. Scalar elements are part of the physical structure of a PQDIF file. They exist within the body of a Record (contained by a CollectionElement).
상속: GSF.PQDIF.Physical.Element
파일 보기 프로젝트 열기: GridProtectionAlliance/gsf 1 사용 예제들

공개 메소드들

메소드 설명
Get ( ) : object

Gets the value of the scalar as the physical type defined by Element.TypeOfValue and returns it as a generic object.

GetBool4 ( ) : bool

Gets the value of this scalar as a 4-byte boolean.

GetComplex16 ( ) : ComplexNumber

Gets the value of this scalar as a 16-byte complex number.

GetComplex8 ( ) : ComplexNumber

Gets the value of this scalar as an 8-byte complex number.

GetGuid ( ) : System.Guid

Gets the value of this scalar as a globally unique identifier.

GetInt1 ( ) : short

Gets the value of this scalar as an 8-bit signed integer.

GetInt2 ( ) : short

Gets the value of this scalar as a 16-bit signed integer.

GetInt4 ( ) : int

Gets the value of this scalar as a 32-bit signed integer.

GetReal4 ( ) : float

Gets the value of this scalar as a 32-bit floating point number.

GetReal8 ( ) : double

Gets the value of this scalar as a 64-bit floating point number.

GetTimestamp ( ) : System.DateTime

Gets the value of this scalar as DateTime.

GetUInt1 ( ) : ushort

Gets the value of this scalar as an 8-bit unsigned integer.

GetUInt2 ( ) : ushort

Gets the value of this scalar as a 16-bit unsigned integer.

GetUInt4 ( ) : uint

Gets the value of this scalar as a 32-bit unsigned integer.

GetValue ( ) : byte[]

Gets the raw bytes of the value that this scalar represents.

ScalarElement ( ) : System

Creates a new instance of the ScalarElement class.

Set ( object value ) : void

Sets the value at the given index as the physical type defined by Element.TypeOfValue.

SetBool4 ( bool value ) : void

Sets the value of this scalar as a 4-byte boolean.

SetComplex16 ( ComplexNumber value ) : void

Sets the value of this scalar as a 16-byte complex number.

SetComplex8 ( ComplexNumber value ) : void

Sets the value of this scalar as an 8-byte complex number.

SetGuid ( System.Guid value ) : void

Sets the value of this scalar as a globally unique identifier.

SetInt1 ( sbyte value ) : void

Sets the value of this scalar as an 8-bit signed integer.

SetInt2 ( short value ) : void

Sets the value of this scalar as a 16-bit signed integer.

SetInt4 ( int value ) : void

Sets the value of this scalar as a 32-bit signed integer.

SetReal4 ( float value ) : void

Sets the value of this scalar as a 32-bit floating point number.

SetReal8 ( double value ) : void

Sets the value of this scalar as a 64-bit floating point number.

SetTimestamp ( System.DateTime value ) : void

Sets the value of this scalar as a DateTime.

SetUInt1 ( byte value ) : void

Sets the value of this scalar as an 8-bit unsigned integer.

SetUInt2 ( ushort value ) : void

Sets the value of this scalar as a 16-bit unsigned integer.

SetUInt4 ( uint value ) : void

Sets the value of this scalar as a 32-bit unsigned integer.

SetValue ( byte value, int offset ) : void

Sets the raw bytes of the value that this scalar represents.

ToString ( ) : string

Returns a string representation of the scalar.

메소드 상세

Get() 공개 메소드

Gets the value of the scalar as the physical type defined by Element.TypeOfValue and returns it as a generic object.
public Get ( ) : object
리턴 object

GetBool4() 공개 메소드

Gets the value of this scalar as a 4-byte boolean.
public GetBool4 ( ) : bool
리턴 bool

GetComplex16() 공개 메소드

Gets the value of this scalar as a 16-byte complex number.
public GetComplex16 ( ) : ComplexNumber
리턴 ComplexNumber

GetComplex8() 공개 메소드

Gets the value of this scalar as an 8-byte complex number.
public GetComplex8 ( ) : ComplexNumber
리턴 ComplexNumber

GetGuid() 공개 메소드

Gets the value of this scalar as a globally unique identifier.
public GetGuid ( ) : System.Guid
리턴 System.Guid

GetInt1() 공개 메소드

Gets the value of this scalar as an 8-bit signed integer.
public GetInt1 ( ) : short
리턴 short

GetInt2() 공개 메소드

Gets the value of this scalar as a 16-bit signed integer.
public GetInt2 ( ) : short
리턴 short

GetInt4() 공개 메소드

Gets the value of this scalar as a 32-bit signed integer.
public GetInt4 ( ) : int
리턴 int

GetReal4() 공개 메소드

Gets the value of this scalar as a 32-bit floating point number.
public GetReal4 ( ) : float
리턴 float

GetReal8() 공개 메소드

Gets the value of this scalar as a 64-bit floating point number.
public GetReal8 ( ) : double
리턴 double

GetTimestamp() 공개 메소드

Gets the value of this scalar as DateTime.
public GetTimestamp ( ) : System.DateTime
리턴 System.DateTime

GetUInt1() 공개 메소드

Gets the value of this scalar as an 8-bit unsigned integer.
public GetUInt1 ( ) : ushort
리턴 ushort

GetUInt2() 공개 메소드

Gets the value of this scalar as a 16-bit unsigned integer.
public GetUInt2 ( ) : ushort
리턴 ushort

GetUInt4() 공개 메소드

Gets the value of this scalar as a 32-bit unsigned integer.
public GetUInt4 ( ) : uint
리턴 uint

GetValue() 공개 메소드

Gets the raw bytes of the value that this scalar represents.
public GetValue ( ) : byte[]
리턴 byte[]

ScalarElement() 공개 메소드

Creates a new instance of the ScalarElement class.
public ScalarElement ( ) : System
리턴 System

Set() 공개 메소드

Sets the value at the given index as the physical type defined by Element.TypeOfValue.
public Set ( object value ) : void
value object The new value to be stored.
리턴 void

SetBool4() 공개 메소드

Sets the value of this scalar as a 4-byte boolean.
public SetBool4 ( bool value ) : void
value bool The new value as a 4-byte boolean.
리턴 void

SetComplex16() 공개 메소드

Sets the value of this scalar as a 16-byte complex number.
public SetComplex16 ( ComplexNumber value ) : void
value ComplexNumber The new value as a 16-byte complex number.
리턴 void

SetComplex8() 공개 메소드

Sets the value of this scalar as an 8-byte complex number.
public SetComplex8 ( ComplexNumber value ) : void
value ComplexNumber The new value as an 8-byte complex number.
리턴 void

SetGuid() 공개 메소드

Sets the value of this scalar as a globally unique identifier.
public SetGuid ( System.Guid value ) : void
value System.Guid The new value as a globally unique identifier.
리턴 void

SetInt1() 공개 메소드

Sets the value of this scalar as an 8-bit signed integer.
public SetInt1 ( sbyte value ) : void
value sbyte The new value as an 8-bit signed integer.
리턴 void

SetInt2() 공개 메소드

Sets the value of this scalar as a 16-bit signed integer.
public SetInt2 ( short value ) : void
value short The new value as a 16-bit signed integer.
리턴 void

SetInt4() 공개 메소드

Sets the value of this scalar as a 32-bit signed integer.
public SetInt4 ( int value ) : void
value int The new value as a 32-bit signed integer.
리턴 void

SetReal4() 공개 메소드

Sets the value of this scalar as a 32-bit floating point number.
public SetReal4 ( float value ) : void
value float The new value as a 32-bit floating point number.
리턴 void

SetReal8() 공개 메소드

Sets the value of this scalar as a 64-bit floating point number.
public SetReal8 ( double value ) : void
value double The new value as a 64-bit floating point number.
리턴 void

SetTimestamp() 공개 메소드

Sets the value of this scalar as a DateTime.
public SetTimestamp ( System.DateTime value ) : void
value System.DateTime The new value of this scalar as a .
리턴 void

SetUInt1() 공개 메소드

Sets the value of this scalar as an 8-bit unsigned integer.
public SetUInt1 ( byte value ) : void
value byte The new value as an 8-bit unsigned integer.
리턴 void

SetUInt2() 공개 메소드

Sets the value of this scalar as a 16-bit unsigned integer.
public SetUInt2 ( ushort value ) : void
value ushort The new value as a 16-bit unsigned integer.
리턴 void

SetUInt4() 공개 메소드

Sets the value of this scalar as a 32-bit unsigned integer.
public SetUInt4 ( uint value ) : void
value uint The new value as a 32-bit unsigned integer.
리턴 void

SetValue() 공개 메소드

Sets the raw bytes of the value that this scalar represents.
public SetValue ( byte value, int offset ) : void
value byte The array containing the bytes.
offset int The offset into the array at which the value starts.
리턴 void

ToString() 공개 메소드

Returns a string representation of the scalar.
public ToString ( ) : string
리턴 string