Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5152 in orxonox.OLD for trunk/src/util/shell.cc


Ignore:
Timestamp:
Aug 27, 2005, 1:06:04 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: all types work as expected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/shell.cc

    r5151 r5152  
    8181  ShellCommand<Shell>::registerCommand("testS", CL_SHELL, &Shell::testS);
    8282  ShellCommand<Shell>::registerCommand("testI", CL_SHELL, &Shell::testI, 5);
     83  ShellCommand<Shell>::registerCommand("testB", CL_SHELL, &Shell::testB);
     84  ShellCommand<Shell>::registerCommand("testF", CL_SHELL, &Shell::testF);
    8385}
    8486
     
    9294{
    9395  PRINTF(3)("This is the Test for one String '%s'\n", s);
     96}
     97
     98void Shell::testB (bool b)
     99{
     100  PRINTF(3)("This is the Test for one Bool: ");
     101  if (b)
     102    PRINTF(3)("true\n");
     103  else
     104    PRINTF(3)("false\n");
     105}
     106
     107void Shell::testF (float f)
     108{
     109  PRINTF(3)("This is the Test for one Float '%f'\n", f);
    94110}
    95111
Note: See TracChangeset for help on using the changeset viewer.