Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 27, 2008, 1:17:33 AM (17 years ago)
Author:
landauf
Message:

after some changes in MultiTypeMath and co., the new config and tconfig commands work very well. they substitute set and tset respectively.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/console/src/core/ConfigFileManager.cc

    r1434 r1435  
    3939{
    4040    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());
    4242    SetConsoleCommandShortcutExtern(reloadConfig);
    4343    SetConsoleCommandShortcutExtern(cleanConfig);
     
    4747    bool config(const std::string& classname, const std::string& varname, const std::string& value)
    4848    {
    49 std::cout << "10a_1\n";
    5049        std::map<std::string, Identifier*>::const_iterator identifier = Identifier::getLowercaseIdentifierMap().find(getLowercase(classname));
    5150        if (identifier != Identifier::getLowercaseIdentifierMapEnd())
    5251        {
    53 std::cout << "10a_2\n";
    5452            std::map<std::string, ConfigValueContainer*>::const_iterator variable = (*identifier).second->getLowercaseConfigValueMap().find(getLowercase(varname));
    5553            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);
    6055        }
    6156        return false;
     
    6459    bool tconfig(const std::string& classname, const std::string& varname, const std::string& value)
    6560    {
    66 std::cout << "10b_1\n";
    6761        std::map<std::string, Identifier*>::const_iterator identifier = Identifier::getLowercaseIdentifierMap().find(getLowercase(classname));
    6862        if (identifier != Identifier::getLowercaseIdentifierMapEnd())
    6963        {
    70 std::cout << "10b_2\n";
    7164            std::map<std::string, ConfigValueContainer*>::const_iterator variable = (*identifier).second->getLowercaseConfigValueMap().find(getLowercase(varname));
    7265            if (variable != (*identifier).second->getLowercaseConfigValueMapEnd())
    73             {
    74 std::cout << "10b_3\n";
    7566                return (*variable).second->tset(value);
    76             }
    7767        }
    7868        return false;
Note: See TracChangeset for help on using the changeset viewer.