Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

dmn::ConfigDefault Class Reference

Default Config module. More...

#include <default.h>

Inheritance diagram for dmn::ConfigDefault:

Inheritance graph
[legend]
Collaboration diagram for dmn::ConfigDefault:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ConfigDefault ()
 Constructor.

bool configure (int argc, char *argv[])
 Make the configuration.

std::string config ()
 Path to the module config to load.

std::string core (const std::string &default_option)
 Path to the module core to load.

std::string display (const std::string &default_option)
 Path to the module display to load.

std::string sound (const std::string &default_option)
 Path to the module sound to load.

std::string tournament (const std::string &default_option)
 Path to the module tournament to load.

std::string match (const std::string &default_option)
 Path to the module match to load.

std::string game (const std::string &default_option)
 Path to the module game to load.

std::string hand (const std::string &default_option)
 Path to the module hand to load.

std::list< dmn::PlayerInfoteams (const std::list< PlayerInfo > default_option)
 List of teams in Config_team_t structures.


Detailed Description

Default Config module.

This module is loaded by Core by default. Then, this module return the modules to load (even other config module). This module reads a configuration file named "dmnrc".


Member Function Documentation

std::string dmn::ConfigDefault::config  )  [virtual]
 

Path to the module config to load.

Returns:
the path to the module or NULL in error

Implements dmn::Config.

bool dmn::ConfigDefault::configure int  argc,
char *  argv[]
[virtual]
 

Make the configuration.

Parameters:
argc number of args in the command line
argv array of args in the command line
Returns:
true if all was ok, else false

Implements dmn::Config.

std::string dmn::ConfigDefault::core const std::string &  default_option  )  [virtual]
 

Path to the module core to load.

Parameters:
default_option path of the default_option core
Returns:
the path to the module or NULL in error

Implements dmn::Config.

std::string dmn::ConfigDefault::display const std::string &  default_option  )  [virtual]
 

Path to the module display to load.

Parameters:
default_option path of the default_option display
Returns:
the path to the module or NULL in error

Implements dmn::Config.

std::string dmn::ConfigDefault::game const std::string &  default_option  )  [virtual]
 

Path to the module game to load.

Parameters:
default_option path of the default_option game
Returns:
the path to the module or NULL in error

Implements dmn::Config.

std::string dmn::ConfigDefault::hand const std::string &  default_option  )  [virtual]
 

Path to the module hand to load.

Parameters:
default_option path of the default_option hand
Returns:
the path to the module or NULL in error

Implements dmn::Config.

std::string dmn::ConfigDefault::match const std::string &  default_option  )  [virtual]
 

Path to the module match to load.

Parameters:
default_option path of the default_option match
Returns:
the path to the module or NULL in error

Implements dmn::Config.

std::string dmn::ConfigDefault::sound const std::string &  default_option  )  [virtual]
 

Path to the module sound to load.

Parameters:
default_option path of the default_option sound
Returns:
the path to the module or NULL in error

Implements dmn::Config.

std::list<dmn::PlayerInfo> dmn::ConfigDefault::teams const std::list< PlayerInfo default_option  )  [virtual]
 

List of teams in Config_team_t structures.

Parameters:
default_option list of teams (List of Config_team_t) by default_option
Returns:
true if all was ok, else false

Implements dmn::Config.

std::string dmn::ConfigDefault::tournament const std::string &  default_option  )  [virtual]
 

Path to the module tournament to load.

Parameters:
default_option path of the default_option match
Returns:
the path to the module or NULL in error

Implements dmn::Config.


The documentation for this class was generated from the following file:
Generated on Fri Dec 26 22:54:06 2003 for dmn by doxygen 1.3.4