Changeset 1435 for code/branches/console/src/core/ConfigFileManager.cc
- Timestamp:
- May 27, 2008, 1:17:33 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/console/src/core/ConfigFileManager.cc
r1434 r1435 39 39 { 40 40 SetConsoleCommandShortcutExtern(config).setArgumentCompleter(0, autocompletion::configvalueclasses()).setArgumentCompleter(1, autocompletion::configvalues()).setArgumentCompleter(2, autocompletion::configvalue()); 41 SetConsoleCommandShortcutExtern(tconfig) ;41 SetConsoleCommandShortcutExtern(tconfig).setArgumentCompleter(0, autocompletion::configvalueclasses()).setArgumentCompleter(1, autocompletion::configvalues()).setArgumentCompleter(2, autocompletion::configvalue()); 42 42 SetConsoleCommandShortcutExtern(reloadConfig); 43 43 SetConsoleCommandShortcutExtern(cleanConfig); … … 47 47 bool config(const std::string& classname, const std::string& varname, const std::string& value) 48 48 { 49 std::cout << "10a_1\n";50 49 std::map<std::string, Identifier*>::const_iterator identifier = Identifier::getLowercaseIdentifierMap().find(getLowercase(classname)); 51 50 if (identifier != Identifier::getLowercaseIdentifierMapEnd()) 52 51 { 53 std::cout << "10a_2\n";54 52 std::map<std::string, ConfigValueContainer*>::const_iterator variable = (*identifier).second->getLowercaseConfigValueMap().find(getLowercase(varname)); 55 53 if (variable != (*identifier).second->getLowercaseConfigValueMapEnd()) 56 { 57 std::cout << "10a_3\n"; 58 return (*variable).second->tset(value); 59 } 54 return (*variable).second->set(value); 60 55 } 61 56 return false; … … 64 59 bool tconfig(const std::string& classname, const std::string& varname, const std::string& value) 65 60 { 66 std::cout << "10b_1\n";67 61 std::map<std::string, Identifier*>::const_iterator identifier = Identifier::getLowercaseIdentifierMap().find(getLowercase(classname)); 68 62 if (identifier != Identifier::getLowercaseIdentifierMapEnd()) 69 63 { 70 std::cout << "10b_2\n";71 64 std::map<std::string, ConfigValueContainer*>::const_iterator variable = (*identifier).second->getLowercaseConfigValueMap().find(getLowercase(varname)); 72 65 if (variable != (*identifier).second->getLowercaseConfigValueMapEnd()) 73 {74 std::cout << "10b_3\n";75 66 return (*variable).second->tset(value); 76 }77 67 } 78 68 return false;
Note: See TracChangeset
for help on using the changeset viewer.