C# Class 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).
Inheritance: GSF.PQDIF.Physical.Element
Exibir arquivo Open project: GridProtectionAlliance/gsf Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
Reallocate ( ) : void

Method Details

Get() public method

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.
return object

GetGuid() public method

Gets the value in this vector as a globally unique identifier.
public GetGuid ( int index ) : System.Guid
index int The index of the value.
return System.Guid

GetInt1() public method

Gets a value in this vector as an 8-bit signed integer.
public GetInt1 ( int index ) : sbyte
index int The index of the value.
return sbyte

GetInt2() public method

Gets a value in this vector as a 16-bit signed integer.
public GetInt2 ( int index ) : short
index int The index of the value.
return short

GetInt4() public method

Gets a value in this vector as a 32-bit signed integer.
public GetInt4 ( int index ) : int
index int The index of the value.
return int

GetReal4() public method

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.
return float

GetReal8() public method

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.
return double

GetTimestamp() public method

Gets a value in this vector as a DateTime.
public GetTimestamp ( int index ) : System.DateTime
index int The index of the value.
return System.DateTime

GetUInt1() public method

Gets a value in this vector as an 8-bit unsigned integer.
public GetUInt1 ( int index ) : byte
index int The index of the value.
return byte

GetUInt2() public method

Gets a value in this vector as a 16-bit unsigned integer.
public GetUInt2 ( int index ) : ushort
index int The index of the value.
return ushort

GetUInt4() public method

Gets a value in this vector as a 32-bit unsigned integer.
public GetUInt4 ( int index ) : uint
index int The index of the value.
return uint

GetValues() public method

Gets the raw bytes of the values contained by this vector.
public GetValues ( ) : byte[]
return byte[]

Set() public method

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.
return void

SetGuid() public method

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.
return void

SetInt1() public method

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.
return void

SetInt2() public method

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.
return void

SetInt4() public method

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.
return void

SetReal4() public method

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.
return void

SetReal8() public method

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.
return void

SetTimestamp() public method

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 .
return void

SetUInt1() public method

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.
return void

SetUInt2() public method

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.
return void

SetUInt4() public method

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.
return void

SetValues() public method

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.
return void

ToString() public method

Returns a string representation of this vector.
public ToString ( ) : string
return string