C# Class ExtensionLoader.Config.IniConfigSource

Inheritance: ConfigSourceBase
Mostra file Open project: 3di/3di-viewer-rei-libs Class Usage Examples

Public Methods

Method Description
IniConfigSource ( ) : System
IniConfigSource ( IniDocument document ) : System
IniConfigSource ( Stream stream ) : System
IniConfigSource ( TextReader reader ) : System
IniConfigSource ( string filePath ) : System
Load ( IniDocument document ) : void
Load ( Stream stream ) : void
Load ( TextReader reader ) : void
Load ( string filePath ) : void
Reload ( ) : void
Save ( ) : void
Save ( Stream stream ) : void
Save ( TextWriter writer ) : void
Save ( string path ) : void
ToString ( ) : string

Private Methods

Method Description
IsSavable ( ) : bool

Returns true if this instance is savable.

Load ( ) : void

Loads the configuration file.

MergeConfigsIntoDocument ( ) : void

Merges all of the configs from the config collection into the IniDocument before it is saved.

MergeDocumentIntoConfigs ( ) : void

Merges the IniDocument into the Configs when the document is reloaded.

RemoveConfigKeys ( IConfig config ) : void

Removes all INI keys that were removed as config keys.

RemoveConfigs ( ) : void

Removes all configs that are not in the newly loaded INI doc.

RemoveKeys ( string sectionName ) : void

Removes all INI keys that were removed as config keys.

RemoveSections ( ) : void

Removes all INI sections that were removed as configs.

Method Details

IniConfigSource() public method

public IniConfigSource ( ) : System
return System

IniConfigSource() public method

public IniConfigSource ( IniDocument document ) : System
document ExtensionLoader.Ini.IniDocument
return System

IniConfigSource() public method

public IniConfigSource ( Stream stream ) : System
stream Stream
return System

IniConfigSource() public method

public IniConfigSource ( TextReader reader ) : System
reader System.IO.TextReader
return System

IniConfigSource() public method

public IniConfigSource ( string filePath ) : System
filePath string
return System

Load() public method

public Load ( IniDocument document ) : void
document ExtensionLoader.Ini.IniDocument
return void

Load() public method

public Load ( Stream stream ) : void
stream Stream
return void

Load() public method

public Load ( TextReader reader ) : void
reader System.IO.TextReader
return void

Load() public method

public Load ( string filePath ) : void
filePath string
return void

Reload() public method

public Reload ( ) : void
return void

Save() public method

public Save ( ) : void
return void

Save() public method

public Save ( Stream stream ) : void
stream Stream
return void

Save() public method

public Save ( TextWriter writer ) : void
writer System.IO.TextWriter
return void

Save() public method

public Save ( string path ) : void
path string
return void

ToString() public method

public ToString ( ) : string
return string