C# 클래스 Grib.Api.GribValue

Encapsulates logic for encoding and decoding a value within a GRIB message.
파일 보기 프로젝트 열기: 0x1mason/GribApi.NET 1 사용 예제들

공개 메소드들

메소드 설명
AsBytes ( ) : byte[]

Gets the key's value in bytes.

AsBytes ( byte newBytes ) : void

Sets the key's value in bytes.

AsDouble ( bool inDegrees = true ) : double

Gets the key's value.

AsDouble ( double newValue, bool inDegrees = true ) : void

Sets the key's value.

AsDoubleArray ( ) : double[]

Gets a copy of the key's array value. Changing the values of this array does not affect the owning message. Call ::AsXArray(alteredArray) to set new values.

AsDoubleArray ( double newValues, bool force = false ) : void

Sets the key's value.

AsInt ( ) : int

Gets the key's value.

AsInt ( int newValue ) : void

Sets the key's value.

AsIntArray ( ) : int[]

Gets a copy of the key's array value. Changing the values of this array does not affect the owning message. Call ::AsXArray(alteredArray) to set new values.

AsIntArray ( int newValues ) : void

Sets the key's value.

AsString ( bool inDegrees = true ) : string

Gets the key's value.

AsString ( string newValue ) : void

Sets the key's value.

ToString ( ) : string

Returns a System.String that represents the value as a string.

보호된 메소드들

메소드 설명
BuildTokenForDouble ( bool inDegrees ) : string

Builds the token for accesing/mutating double values, accounting for degree conversions.

비공개 메소드들

메소드 설명
AssertTypeSafe ( GribValueType requestedType ) : void

Tests for type safety when accessing this value.

AssertTypeSafe ( string key, GribValueType requestedType, GribValueType actualType ) : void

Tests for type safety when accessing a GRIB value.

GribValue ( GribHandle handle, string keyName ) : System

Initializes a new instance of the GribValue class.

GribValue ( string keyName ) : System

Initializes a new instance of the GribValue class.

NativeTypeForKey ( string key ) : GribValueType

Gets an enum describing a key's representation within the message.

메소드 상세

AsBytes() 공개 메소드

Gets the key's value in bytes.
public AsBytes ( ) : byte[]
리턴 byte[]

AsBytes() 공개 메소드

Sets the key's value in bytes.
public AsBytes ( byte newBytes ) : void
newBytes byte The new bytes.
리턴 void

AsDouble() 공개 메소드

Gets the key's value.
public AsDouble ( bool inDegrees = true ) : double
inDegrees bool if set to true, GribApi.NET will return the value [in degrees] when possible.
리턴 double

AsDouble() 공개 메소드

Sets the key's value.
public AsDouble ( double newValue, bool inDegrees = true ) : void
newValue double The new value.
inDegrees bool if set to true [in degrees], GribApi.NET will set the value [in degrees] when possible.
리턴 void

AsDoubleArray() 공개 메소드

Gets a copy of the key's array value. Changing the values of this array does not affect the owning message. Call ::AsXArray(alteredArray) to set new values.
public AsDoubleArray ( ) : double[]
리턴 double[]

AsDoubleArray() 공개 메소드

Sets the key's value.
public AsDoubleArray ( double newValues, bool force = false ) : void
newValues double The new values.
force bool if set to true [force].
리턴 void

AsInt() 공개 메소드

Gets the key's value.
public AsInt ( ) : int
리턴 int

AsInt() 공개 메소드

Sets the key's value.
public AsInt ( int newValue ) : void
newValue int The new value.
리턴 void

AsIntArray() 공개 메소드

Gets a copy of the key's array value. Changing the values of this array does not affect the owning message. Call ::AsXArray(alteredArray) to set new values.
public AsIntArray ( ) : int[]
리턴 int[]

AsIntArray() 공개 메소드

Sets the key's value.
public AsIntArray ( int newValues ) : void
newValues int The new values.
리턴 void

AsString() 공개 메소드

Gets the key's value.
public AsString ( bool inDegrees = true ) : string
inDegrees bool if set to true, GribApi.NET will convert the value to degrees when possible.
리턴 string

AsString() 공개 메소드

Sets the key's value.
public AsString ( string newValue ) : void
newValue string The new value.
리턴 void

BuildTokenForDouble() 보호된 메소드

Builds the token for accesing/mutating double values, accounting for degree conversions.
protected BuildTokenForDouble ( bool inDegrees ) : string
inDegrees bool if set to true [in degrees].
리턴 string

ToString() 공개 메소드

Returns a System.String that represents the value as a string.
public ToString ( ) : string
리턴 string