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
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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