C# Class Universe.Framework.Configuration.ConfigurationLoader

Loads the Configuration files into nIni
Show file Open project: Virtual-Universe/Virtual-Universe Class Usage Examples

Public Properties

Property Type Description
IsGridServer bool
defaultIniFile string
iniFilePath string
m_defines string>.Dictionary

Protected Properties

Property Type Description
inidbg bool
showIniLoading bool

Public Methods

Method Description
AddIncludes ( List sources, string basePath, int &cntr, List &triedPaths, IConfigSource configSource ) : void

Adds the included files as ini configuration files

FixDefines ( IConfigSource &m_config ) : void
LoadConfigSettings ( IConfigSource argvSource ) : IConfigSource

Loads the region configuration

WriteConfigFile ( int i, IConfigSource m_config ) : void

Private Methods

Method Description
IsUri ( string file ) : bool

Check if we can convert the string to a URI

ReadConfig ( string iniPath, int i, IConfigSource source ) : bool

Provide same ini loader functionality for standard ini and master ini - file system or XML over http

Method Details

AddIncludes() public method

Adds the included files as ini configuration files
public AddIncludes ( List sources, string basePath, int &cntr, List &triedPaths, IConfigSource configSource ) : void
sources List List of URL strings or filename strings
basePath string
cntr int Where should we start inserting sources into the list?
triedPaths List
configSource IConfigSource
return void

FixDefines() public method

public FixDefines ( IConfigSource &m_config ) : void
m_config IConfigSource
return void

LoadConfigSettings() public method

Loads the region configuration
public LoadConfigSettings ( IConfigSource argvSource ) : IConfigSource
argvSource IConfigSource Parameters passed into the process when started
return IConfigSource

WriteConfigFile() public method

public WriteConfigFile ( int i, IConfigSource m_config ) : void
i int
m_config IConfigSource
return void

Property Details

IsGridServer public property

public bool IsGridServer
return bool

defaultIniFile public property

public string defaultIniFile
return string

iniFilePath public property

public string iniFilePath
return string

inidbg protected property

Should we save all merging of the .ini files to the file-system?
protected bool inidbg
return bool

m_defines public property

public Dictionary m_defines
return string>.Dictionary

showIniLoading protected property

Should we show all the loading of the config files?
protected bool showIniLoading
return bool