ConfigFactory Class Reference
[Configuration-related objects]

A factory object to instantiate the correct subclass of Config. More...

#include <cmconfig.h>

List of all members.

Static Public Member Functions

static Configconfig_object (const string &)

Static Private Member Functions

template<class CFG_type>
static Confignew_config (const string &)


Detailed Description

A factory object to instantiate the correct subclass of Config.

This factory will instantiate and return a class of the correct configuration-file-dependent type, based on filename. In the future, this should likely be based on something else.

Todo:
Filename decisions need to be made. What file name patterns should apply to each of the [currently three] formats of configuration file? Only YAML has a documented file naming convention...
Note:
There is no constructor, as this is just a static class to construct the "correct" sub-class.

Definition at line 121 of file cmconfig.h.


Member Function Documentation

Config * ConfigFactory::config_object ( const string &  filename  )  [static]

Return the sub-class object appropriate based on the argument filename

Returns:
Config object of the correct subclass for the filename

Definition at line 260 of file cmconfig.cc.

Referenced by main().

Here is the caller graph for this function:

template<class CFG_type>
Config * ConfigFactory::new_config ( const string &  filename  )  [inline, static, private]

Definition at line 303 of file cmconfig.cc.


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

Generated on Tue May 13 11:32:43 2008 for consmgr by  doxygen 1.5.5