C# Class iRacingSdkWrapper.SessionInfo

Represents a single update of the Session Info YAML and includes parsing capabilities.
Show file Open project: NickThissen/iRacingSdkWrapper Class Usage Examples

Public Methods

Method Description
GetValue ( string query ) : string

Gets a value from the session info YAML. May throw an exception. Use TryGetValue for safer operation.

SessionInfo ( string yaml, double updateTime ) : System
TryGetValue ( string query, string &value ) : bool

Gets a value from the session info YAML. Returns true if successfull, false if there is an error.

TryGetValue ( string query ) : string

Gets a value from the session info YAML, or null if there is an error.

this ( string key ) : iRacingSdkWrapper.YamlQuery

Private Methods

Method Description
FixYaml ( string yaml ) : void
ParseYaml ( ) : void

Method Details

GetValue() public method

Gets a value from the session info YAML. May throw an exception. Use TryGetValue for safer operation.
public GetValue ( string query ) : string
query string The YAML query path to the value.
return string

SessionInfo() public method

public SessionInfo ( string yaml, double updateTime ) : System
yaml string
updateTime double
return System

TryGetValue() public method

Gets a value from the session info YAML. Returns true if successfull, false if there is an error.
public TryGetValue ( string query, string &value ) : bool
query string The YAML query path to the value.
value string When this method returns, contains the requested value if the query was valid, or null if the query was invalid.
return bool

TryGetValue() public method

Gets a value from the session info YAML, or null if there is an error.
public TryGetValue ( string query ) : string
query string The YAML query path to the value.
return string

this() public method

public this ( string key ) : iRacingSdkWrapper.YamlQuery
key string
return iRacingSdkWrapper.YamlQuery