Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 21, 2008, 1:33:42 AM (16 years ago)
Author:
landauf
Message:

big commit, but not much changes in code:

  • put CommandEvaluation into it's own .cc and .h files
  • put some basic ConsoleCommands into ConsoleCommandCompilation.cc and .h
  • created a new class, ConsoleCommand, inheriting from ExecutorStatic, implementing all command-related features that were located in the Executor until now (at the moment only accessLevel_, but more will come - from reto and me)
  • renamed ConsoleCommand-macros to SetConsoleCommand (all related macros were changed the same way)
  • added a new command named "killdelays", that kills all delayed commands. helpful to stop disco ;)
File:
1 edited

Legend:

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

    r1337 r1341  
    4848namespace orxonox
    4949{
    50     ConsoleCommandShortcutGeneric(tclexecute, createExecutor(createFunctor(&TclThreadManager::execute), "tclexecute", AccessLevel::None));
    51     ConsoleCommandShortcutGeneric(tclquery,   createExecutor(createFunctor(&TclThreadManager::query),   "tclquery",   AccessLevel::None));
    52     ConsoleCommand(TclThreadManager, create,    AccessLevel::None, false);
    53     ConsoleCommand(TclThreadManager, destroy,   AccessLevel::None, false);
    54     ConsoleCommand(TclThreadManager, execute,   AccessLevel::None, false);
    55     ConsoleCommand(TclThreadManager, query,     AccessLevel::None, false);
    56     ConsoleCommand(TclThreadManager, status,    AccessLevel::None, false);
    57     ConsoleCommand(TclThreadManager, dump,      AccessLevel::None, false);
    58     ConsoleCommand(TclThreadManager, flush,     AccessLevel::None, false);
     50    SetConsoleCommandShortcutGeneric(tclexecute, createExecutor(createFunctor(&TclThreadManager::execute), "tclexecute"));
     51    SetConsoleCommandShortcutGeneric(tclquery,   createExecutor(createFunctor(&TclThreadManager::query),   "tclquery"  ));
     52    SetConsoleCommand(TclThreadManager, create, false);
     53    SetConsoleCommand(TclThreadManager, destroy, false);
     54    SetConsoleCommand(TclThreadManager, execute, false);
     55    SetConsoleCommand(TclThreadManager, query,  false);
     56    SetConsoleCommand(TclThreadManager, status, false);
     57    SetConsoleCommand(TclThreadManager, dump,    false);
     58    SetConsoleCommand(TclThreadManager, flush,  false);
    5959
    6060    TclThreadManager* instance_tclthreadmanager = &TclThreadManager::getInstance();
Note: See TracChangeset for help on using the changeset viewer.