DotNX::Config::ConfigManagerBase< ConfigSectionType > Class Template Reference

Abstract base class for application configuration manager classes. More...

Inheritance diagram for DotNX::Config::ConfigManagerBase< ConfigSectionType >:

DotNX::Config::IConfigManager DotNX::Config::IConfigSectionManager< ConfigSectionType > DotNX::Config::WebConfigManagerBase< ConfigSectionType >

List of all members.

Public Member Functions

 ConfigManagerBase (string mainSectionName)
 Constructor.
 ConfigManagerBase (string mainSectionName, string path)
 Constructor.
string GetConnectionString (string name)
 Retrieves a connection string from the configuration.

Protected Member Functions

 ConfigManagerBase (string mainSectionName, System.Configuration.Configuration sysConfig)
 Constructor.

Properties

System.Configuration.Configuration SysConfig [get]
 The application's configuration.
string SectionName [get]
 The name of the main configuration section.
ConfigSectionType ConfigSection [get]
 The main configuration section.


Detailed Description

template<ConfigSectionType>
class DotNX::Config::ConfigManagerBase< ConfigSectionType >

Abstract base class for application configuration manager classes.

It assumes that there's a main configuration section that contains the application specific portion of the configuration, while other sections provide configuration information that relate to specific libraries or subsystems.

Template Parameters:
ConfigSectionType The main configuration section handler class.
Type Constraints
ConfigSectionType :class 

Constructor & Destructor Documentation

template<ConfigSectionType >
DotNX::Config::ConfigManagerBase< ConfigSectionType >::ConfigManagerBase ( string  mainSectionName  ) 

Constructor.

Parameters:
mainSectionName The main configuration section's name.

template<ConfigSectionType >
DotNX::Config::ConfigManagerBase< ConfigSectionType >::ConfigManagerBase ( string  mainSectionName,
string  path 
)

Constructor.

Provided for testing purposes, so that configuration information may be made available within automated regression test suits.

Parameters:
mainSectionName The main configuration section's name.
path The path to the application's app.config file.

template<ConfigSectionType >
DotNX::Config::ConfigManagerBase< ConfigSectionType >::ConfigManagerBase ( string  mainSectionName,
System.Configuration.Configuration  sysConfig 
) [protected]

Constructor.

All the other constructors delegate to the present one.

Parameters:
mainSectionName The main configuration section's name.
sysConfig An object representing the application's configuration.


Member Function Documentation

template<ConfigSectionType >
string DotNX::Config::ConfigManagerBase< ConfigSectionType >::GetConnectionString ( string  name  ) 

Retrieves a connection string from the configuration.

Parameters:
name The name of the configuration.
Returns:
The connection string.

Implements DotNX::Config::IConfigManager.


Property Documentation

template<ConfigSectionType >
System.Configuration.Configuration DotNX::Config::ConfigManagerBase< ConfigSectionType >::SysConfig [get]

The application's configuration.

Implements DotNX::Config::IConfigManager.

template<ConfigSectionType >
string DotNX::Config::ConfigManagerBase< ConfigSectionType >::SectionName [get]

The name of the main configuration section.

Implements DotNX::Config::IConfigSectionManager< ConfigSectionType >.

template<ConfigSectionType >
ConfigSectionType DotNX::Config::ConfigManagerBase< ConfigSectionType >::ConfigSection [get]

The main configuration section.

Implements DotNX::Config::IConfigSectionManager< ConfigSectionType >.


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

SourceForge.net Logo
Generated on Sat Oct 18 14:13:25 2008 for .Nick's 0.1.0 by  doxygen 1.5.7.1