Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5619 in orxonox.OLD for branches/network/src/lib


Ignore:
Timestamp:
Nov 16, 2005, 7:23:40 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: ShellCommand availiable again, in orxonox-mode, but unavailiable in subproject Network

Location:
branches/network/src/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/lang/class_list.cc

    r5580 r5619  
    2727
    2828using namespace std;
    29 /*
     29
     30#ifndef NO_SHELL_COMMAND
    3031SHELL_COMMAND_STATIC(debug, ClassList, ClassList::debugS)
    3132    ->describe("Shows all registered classes, if param1: is a valid ClassName only values of this class are shown. param2: how much output")
    32     ->defaultValues(2, NULL, 1);*/
     33    ->defaultValues(2, NULL, 1);
     34#endif
    3335
    3436/**
  • branches/network/src/lib/shell/shell_command.h

    r5391 r5619  
    3535 * $ ClassName [ObjectName] commandNameInShell [parameters]
    3636 */
     37#ifndef NO_SHELL_COMMAND
    3738#define SHELL_COMMAND(command, class, function) \
    3839        ShellCommandBase* shell_command_##class##_##command = ShellCommand<class>::registerCommand(#command, #class, &class::function)
     
    5253#define SHELL_COMMAND_STATIC(command, class, function) \
    5354                         ShellCommandBase* shell_command_##class##_##command = ShellCommandStatic<class>::registerCommand(#command, #class, function)
    54 
     55#else /* NO_SHELL_COMMAND */
     56#define SHELL_COMMAND(NO, NO2, NO3)
     57#define SHELL_COMMAND_STATIC(NO1, NO2, NO3)
     58#endif /* NO_SHELL_COMMAND */
    5559
    5660//! an enumerator for the definition of the Type.
Note: See TracChangeset for help on using the changeset viewer.