C# Class SimTelemetry.Objects.IniScanner

Mostra file Open project: nlhans/SimTelemetry Class Usage Examples

Public Properties

Property Type Description
Data Dictionary>
HandleCustomKeys Signal
HandleDuplicateKey Signal
HandleUnknownLine Signal
IgnoreGroups bool

Private Properties

Property Type Description
ParseParameter string[]
PopGroup void
PushGroup void

Public Methods

Method Description
IniScanner ( ) : System
Read ( ) : void
TryGetData ( string group, string key ) : string[]
TryGetDouble ( string key ) : double
TryGetDouble ( string group, string key ) : double
TryGetInt32 ( string key ) : int
TryGetInt32 ( string group, string key ) : int
TryGetString ( string key ) : string
TryGetString ( string group, string key ) : string

Private Methods

Method Description
ParseParameter ( string d ) : string[]
PopGroup ( ) : void
PushGroup ( string group ) : void

Method Details

IniScanner() public method

public IniScanner ( ) : System
return System

Read() public method

public Read ( ) : void
return void

TryGetData() public method

public TryGetData ( string group, string key ) : string[]
group string
key string
return string[]

TryGetDouble() public method

public TryGetDouble ( string key ) : double
key string
return double

TryGetDouble() public method

public TryGetDouble ( string group, string key ) : double
group string
key string
return double

TryGetInt32() public method

public TryGetInt32 ( string key ) : int
key string
return int

TryGetInt32() public method

public TryGetInt32 ( string group, string key ) : int
group string
key string
return int

TryGetString() public method

public TryGetString ( string key ) : string
key string
return string

TryGetString() public method

public TryGetString ( string group, string key ) : string
group string
key string
return string

Property Details

Data public_oe property

The data dictionary with groups, keys and then data (arrays).
public Dictionary> Data
return Dictionary>

HandleCustomKeys public_oe property

This event is fired when the current line tries to insert a key that is present in the FireEventsForKeys property. The key value is NOT inserted into the final data dictionary!
public Signal HandleCustomKeys
return Signal

HandleDuplicateKey public_oe property

This event is fired when a duplicate is tried to be inserted.
public Signal HandleDuplicateKey
return Signal

HandleUnknownLine public_oe property

This event is fired whenever the INI parser comes across a line that isn't a key or group indicator.
public Signal HandleUnknownLine
return Signal

IgnoreGroups public_oe property

This setting places all keys in one group. Default: true
public bool IgnoreGroups
return bool