IGLib  1.7.2
The IGLib base library for development of numerical, technical and business applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
IG.Lib.SettingsReaderBase Class Referenceabstract
+ Inheritance diagram for IG.Lib.SettingsReaderBase:
+ Collaboration diagram for IG.Lib.SettingsReaderBase:

Public Member Functions

abstract string GetSetting (string settingname)
 Retrieves the specified setting from the current settings source. More...
 
virtual bool GetBooleanSetting (string settingname)
 Retrieves the specified boolean setting from the current settings source. More...
 
virtual long GetIntegerSetting (string settingname)
 Retrieves the specified integer setting from the current settings source. If the specific setting is not specified in the configuration then 0 is returned. More...
 
virtual long GetIntegerSetting (string settingname, long defaultvalue)
 Retrieves the specified integer setting from the current settings source. More...
 

Protected Attributes

bool _expandEnv = true
 

Properties

object Lock [get]
 ILockable.Lock, gets a public lock for the current object. More...
 
virtual bool ExpandEnvironmentVariables [get, set]
 
- Properties inherited from IG.Lib.ILockable
object Lock [get]
 

Static Private Member Functions

static ISettingsRreader FromAppConfig ()
 

Private Attributes

object lockobj = new object()
 

Member Function Documentation

abstract string IG.Lib.SettingsReaderBase.GetSetting ( string  settingname)
pure virtual

Retrieves the specified setting from the current settings source.

Parameters
settingnameSetting name.

Implemented in IG.Lib.SettingsReaderAppConfig.

virtual bool IG.Lib.SettingsReaderBase.GetBooleanSetting ( string  settingname)
inlinevirtual

Retrieves the specified boolean setting from the current settings source.

Parameters
settingnameSetting name.

References IG.Lib.UtilStr.ToBoolean().

virtual long IG.Lib.SettingsReaderBase.GetIntegerSetting ( string  settingname)
inlinevirtual

Retrieves the specified integer setting from the current settings source. If the specific setting is not specified in the configuration then 0 is returned.

Parameters
settingnameSetting name.

References IG.Lib.UtilStr.ToInt().

virtual long IG.Lib.SettingsReaderBase.GetIntegerSetting ( string  settingname,
long  defaultvalue 
)
inlinevirtual

Retrieves the specified integer setting from the current settings source.

Parameters
settingnameSetting name.
defaultvalueValue returned in the case that the correspondig setting is not defined.

References IG.Lib.UtilStr.ToInt().

static ISettingsRreader IG.Lib.SettingsReaderBase.FromAppConfig ( )
inlinestaticprivate

Member Data Documentation

object IG.Lib.SettingsReaderBase.lockobj = new object()
private
bool IG.Lib.SettingsReaderBase._expandEnv = true
protected

Property Documentation

object IG.Lib.SettingsReaderBase.Lock
get

ILockable.Lock, gets a public lock for the current object.

virtual bool IG.Lib.SettingsReaderBase.ExpandEnvironmentVariables
getset

The documentation for this class was generated from the following file: