- Timestamp:
- Aug 28, 2010, 1:51:04 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/consolecommands3/src/libraries/core/ConfigFileManager.cc
r7219 r7236 431 431 static const std::string __CC_getConfig_name = "getConfig"; 432 432 433 _SetConsoleCommand(__CC_load_name, &ConfigFile::load);434 _SetConsoleCommand(__CC_setFilename_name, &SettingsConfigFile::setFilename);435 _SetConsoleCommand(__CC_config_name, &SettingsConfigFile::config).argumentCompleter(0, autocompletion::settingssections()).argumentCompleter(1, autocompletion::settingsentries()).argumentCompleter(2, autocompletion::settingsvalue());436 _SetConsoleCommand(__CC_tconfig_name, &SettingsConfigFile::tconfig).argumentCompleter(0, autocompletion::settingssections()).argumentCompleter(1, autocompletion::settingsentries()).argumentCompleter(2, autocompletion::settingsvalue());437 _SetConsoleCommand(__CC_getConfig_name, &SettingsConfigFile::getConfig).argumentCompleter(0, autocompletion::settingssections()).argumentCompleter(1, autocompletion::settingsentries());433 SetConsoleCommand(__CC_load_name, &ConfigFile::load); 434 SetConsoleCommand(__CC_setFilename_name, &SettingsConfigFile::setFilename); 435 SetConsoleCommand(__CC_config_name, &SettingsConfigFile::config).argumentCompleter(0, autocompletion::settingssections()).argumentCompleter(1, autocompletion::settingsentries()).argumentCompleter(2, autocompletion::settingsvalue()); 436 SetConsoleCommand(__CC_tconfig_name, &SettingsConfigFile::tconfig).argumentCompleter(0, autocompletion::settingssections()).argumentCompleter(1, autocompletion::settingsentries()).argumentCompleter(2, autocompletion::settingsvalue()); 437 SetConsoleCommand(__CC_getConfig_name, &SettingsConfigFile::getConfig).argumentCompleter(0, autocompletion::settingssections()).argumentCompleter(1, autocompletion::settingsentries()); 438 438 439 439 SettingsConfigFile* SettingsConfigFile::singletonPtr_s = 0; … … 442 442 : ConfigFile(filename) 443 443 { 444 _ModifyConsoleCommand(__CC_load_name).setObject(this);445 _ModifyConsoleCommand(__CC_setFilename_name).setObject(this);446 _ModifyConsoleCommand(__CC_config_name).setObject(this);447 _ModifyConsoleCommand(__CC_tconfig_name).setObject(this);448 _ModifyConsoleCommand(__CC_getConfig_name).setObject(this);444 ModifyConsoleCommand(__CC_load_name).setObject(this); 445 ModifyConsoleCommand(__CC_setFilename_name).setObject(this); 446 ModifyConsoleCommand(__CC_config_name).setObject(this); 447 ModifyConsoleCommand(__CC_tconfig_name).setObject(this); 448 ModifyConsoleCommand(__CC_getConfig_name).setObject(this); 449 449 } 450 450 451 451 SettingsConfigFile::~SettingsConfigFile() 452 452 { 453 _ModifyConsoleCommand(__CC_load_name).setObject(0);454 _ModifyConsoleCommand(__CC_setFilename_name).setObject(0);455 _ModifyConsoleCommand(__CC_config_name).setObject(0);456 _ModifyConsoleCommand(__CC_tconfig_name).setObject(0);457 _ModifyConsoleCommand(__CC_getConfig_name).setObject(0);453 ModifyConsoleCommand(__CC_load_name).setObject(0); 454 ModifyConsoleCommand(__CC_setFilename_name).setObject(0); 455 ModifyConsoleCommand(__CC_config_name).setObject(0); 456 ModifyConsoleCommand(__CC_tconfig_name).setObject(0); 457 ModifyConsoleCommand(__CC_getConfig_name).setObject(0); 458 458 } 459 459
Note: See TracChangeset
for help on using the changeset viewer.