C# 클래스 iRacingSdkWrapper.SessionInfo

Represents a single update of the Session Info YAML and includes parsing capabilities.
파일 보기 프로젝트 열기: NickThissen/iRacingSdkWrapper 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
FixYaml ( string yaml ) : void
ParseYaml ( ) : void

메소드 상세

GetValue() 공개 메소드

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.
리턴 string

SessionInfo() 공개 메소드

public SessionInfo ( string yaml, double updateTime ) : System
yaml string
updateTime double
리턴 System

TryGetValue() 공개 메소드

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.
리턴 bool

TryGetValue() 공개 메소드

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.
리턴 string

this() 공개 메소드

public this ( string key ) : iRacingSdkWrapper.YamlQuery
key string
리턴 iRacingSdkWrapper.YamlQuery