C# Класс GSF.PQDIF.Physical.VectorElement

Represents an Element which is a collection of values in a PQDIF file. Vector 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 ( int index ) : object

Gets the value at the given index as the physical type defined by TypeOfValue and returns it as a generic object.

GetGuid ( int index ) : System.Guid

Gets the value in this vector as a globally unique identifier.

GetInt1 ( int index ) : sbyte

Gets a value in this vector as an 8-bit signed integer.

GetInt2 ( int index ) : short

Gets a value in this vector as a 16-bit signed integer.

GetInt4 ( int index ) : int

Gets a value in this vector as a 32-bit signed integer.

GetReal4 ( int index ) : float

Gets a value in this vector as a 32-bit floating point number.

GetReal8 ( int index ) : double

Gets a value in this vector as a 64-bit floating point number.

GetTimestamp ( int index ) : System.DateTime

Gets a value in this vector as a DateTime.

GetUInt1 ( int index ) : byte

Gets a value in this vector as an 8-bit unsigned integer.

GetUInt2 ( int index ) : ushort

Gets a value in this vector as a 16-bit unsigned integer.

GetUInt4 ( int index ) : uint

Gets a value in this vector as a 32-bit unsigned integer.

GetValues ( ) : byte[]

Gets the raw bytes of the values contained by this vector.

Set ( int index, object value ) : void

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

SetGuid ( int index, System.Guid value ) : void

Sets the value in this vector as a globally unique identifier.

SetInt1 ( int index, sbyte value ) : void

Sets a value in this vector as an 8-bit signed integer.

SetInt2 ( int index, short value ) : void

Sets a value in this vector as a 16-bit signed integer.

SetInt4 ( int index, int value ) : void

Sets a value in this vector as a 32-bit signed integer.

SetReal4 ( int index, float value ) : void

Sets a value in this vector as a 32-bit floating point number.

SetReal8 ( int index, double value ) : void

Sets a value in this vector as a 64-bit floating point number.

SetTimestamp ( int index, System.DateTime value ) : void

Sets a value in this vector as a DateTime.

SetUInt1 ( int index, byte value ) : void

Sets a value in this vector as an 8-bit unsigned integer.

SetUInt2 ( int index, ushort value ) : void

Sets a value in this vector as a 16-bit unsigned integer.

SetUInt4 ( int index, uint value ) : void

Sets a value in this vector as a 32-bit unsigned integer.

SetValues ( byte values, int offset ) : void

Sets the raw bytes of the values contained by this vector.

ToString ( ) : string

Returns a string representation of this vector.

Приватные методы

Метод Описание
Reallocate ( ) : void

Описание методов

Get() публичный Метод

Gets the value at the given index as the physical type defined by TypeOfValue and returns it as a generic object.
public Get ( int index ) : object
index int The index of the value to be retrieved.
Результат object

GetGuid() публичный Метод

Gets the value in this vector as a globally unique identifier.
public GetGuid ( int index ) : System.Guid
index int The index of the value.
Результат System.Guid

GetInt1() публичный Метод

Gets a value in this vector as an 8-bit signed integer.
public GetInt1 ( int index ) : sbyte
index int The index of the value.
Результат sbyte

GetInt2() публичный Метод

Gets a value in this vector as a 16-bit signed integer.
public GetInt2 ( int index ) : short
index int The index of the value.
Результат short

GetInt4() публичный Метод

Gets a value in this vector as a 32-bit signed integer.
public GetInt4 ( int index ) : int
index int The index of the value.
Результат int

GetReal4() публичный Метод

Gets a value in this vector as a 32-bit floating point number.
public GetReal4 ( int index ) : float
index int The index of the value.
Результат float

GetReal8() публичный Метод

Gets a value in this vector as a 64-bit floating point number.
public GetReal8 ( int index ) : double
index int The index of the value.
Результат double

GetTimestamp() публичный Метод

Gets a value in this vector as a DateTime.
public GetTimestamp ( int index ) : System.DateTime
index int The index of the value.
Результат System.DateTime

GetUInt1() публичный Метод

Gets a value in this vector as an 8-bit unsigned integer.
public GetUInt1 ( int index ) : byte
index int The index of the value.
Результат byte

GetUInt2() публичный Метод

Gets a value in this vector as a 16-bit unsigned integer.
public GetUInt2 ( int index ) : ushort
index int The index of the value.
Результат ushort

GetUInt4() публичный Метод

Gets a value in this vector as a 32-bit unsigned integer.
public GetUInt4 ( int index ) : uint
index int The index of the value.
Результат uint

GetValues() публичный Метод

Gets the raw bytes of the values contained by this vector.
public GetValues ( ) : byte[]
Результат byte[]

Set() публичный Метод

Sets the value at the given index as the physical type defined by TypeOfValue.
public Set ( int index, object value ) : void
index int The index of the value.
value object The new value to be stored.
Результат void

SetGuid() публичный Метод

Sets the value in this vector as a globally unique identifier.
public SetGuid ( int index, System.Guid value ) : void
index int The index of the value.
value System.Guid The new value as a globally unique identifier.
Результат void

SetInt1() публичный Метод

Sets a value in this vector as an 8-bit signed integer.
public SetInt1 ( int index, sbyte value ) : void
index int The index of the value.
value sbyte The new value of an 8-bit signed integer.
Результат void

SetInt2() публичный Метод

Sets a value in this vector as a 16-bit signed integer.
public SetInt2 ( int index, short value ) : void
index int The index of the value.
value short The new value of a 16-bit signed integer.
Результат void

SetInt4() публичный Метод

Sets a value in this vector as a 32-bit signed integer.
public SetInt4 ( int index, int value ) : void
index int The index of the value.
value int The new value of a 32-bit signed integer.
Результат void

SetReal4() публичный Метод

Sets a value in this vector as a 32-bit floating point number.
public SetReal4 ( int index, float value ) : void
index int The index of the value.
value float The new value of a 32-bit floating point number.
Результат void

SetReal8() публичный Метод

Sets a value in this vector as a 64-bit floating point number.
public SetReal8 ( int index, double value ) : void
index int The index of the value.
value double The new value of a 64-bit floating point number.
Результат void

SetTimestamp() публичный Метод

Sets a value in this vector as a DateTime.
public SetTimestamp ( int index, System.DateTime value ) : void
index int The index of the value.
value System.DateTime The new value of a .
Результат void

SetUInt1() публичный Метод

Sets a value in this vector as an 8-bit unsigned integer.
public SetUInt1 ( int index, byte value ) : void
index int The index of the value.
value byte The new value of an 8-bit unsigned integer.
Результат void

SetUInt2() публичный Метод

Sets a value in this vector as a 16-bit unsigned integer.
public SetUInt2 ( int index, ushort value ) : void
index int The index of the value.
value ushort The new value of a 16-bit unsigned integer.
Результат void

SetUInt4() публичный Метод

Sets a value in this vector as a 32-bit unsigned integer.
public SetUInt4 ( int index, uint value ) : void
index int The index of the value.
value uint The new value of a 32-bit unsigned integer.
Результат void

SetValues() публичный Метод

Sets the raw bytes of the values contained by this vector.
public SetValues ( byte values, int offset ) : void
values byte The array that contains the raw bytes.
offset int The offset into the array at which the values start.
Результат void

ToString() публичный Метод

Returns a string representation of this vector.
public ToString ( ) : string
Результат string