Joutsen v0.5.0+12-g5dd5f7e
Public Member Functions | List of all members
Joutsen.Configuration.XmlApplicationConfiguration Class Reference

An application configuration read from a XML file. More...

Public Member Functions

 XmlApplicationConfiguration ()
 
 XmlApplicationConfiguration (SysConfiguration configuration)
 
SectionType GetSection< SectionType > (string sectionName)
 
String GetValue (String key)
 Fetches a value identified by a key as a string. More...
 
ValueType GetValue< ValueType > (string key)
 
ValueType GetValue< ValueType > (string key, SimpleTypeConverter< string, ValueType > converter)
 
- Public Member Functions inherited from Joutsen.Configuration.ApplicationConfiguration
String GetValue (String key)
 Fetches a value identified by a key as a string. More...
 
ValueType GetValue< ValueType > (String key)
 Fetches a value identified by a key as a specific type. More...
 
ValueType GetValue< ValueType > (String key, SimpleTypeConverter< string, ValueType > converter)
 Fetches a value identified by a key as a specific type. More...
 
SectionType GetSection< SectionType > (String sectionName)
 Fetches a section from the configuration. More...
 

Detailed Description

An application configuration read from a XML file.

Since
0.4.0

Constructor & Destructor Documentation

◆ XmlApplicationConfiguration() [1/2]

Joutsen.Configuration.XmlApplicationConfiguration.XmlApplicationConfiguration ( )

◆ XmlApplicationConfiguration() [2/2]

Joutsen.Configuration.XmlApplicationConfiguration.XmlApplicationConfiguration ( SysConfiguration  configuration)

Member Function Documentation

◆ GetSection< SectionType >()

SectionType Joutsen.Configuration.XmlApplicationConfiguration.GetSection< SectionType > ( string  sectionName)
Type Constraints
SectionType :ConfigurationSection 

◆ GetValue()

String Joutsen.Configuration.XmlApplicationConfiguration.GetValue ( String  key)

Fetches a value identified by a key as a string.

Implements Joutsen.Configuration.ApplicationConfiguration.

◆ GetValue< ValueType >() [1/2]

ValueType Joutsen.Configuration.XmlApplicationConfiguration.GetValue< ValueType > ( string  key)
Type Constraints
ValueType :IConvertible 

◆ GetValue< ValueType >() [2/2]

ValueType Joutsen.Configuration.XmlApplicationConfiguration.GetValue< ValueType > ( string  key,
SimpleTypeConverter< string, ValueType >  converter 
)