Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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

orxonox/trunk: all types work as expected

Location:
trunk/src/util
Files:
3 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
  • trunk/src/util/shell.h

    r5145 r5152  
    4141    void testI (int i);
    4242    void testS (const char* s);
     43    void testB (bool b);
     44    void testF (float f);
    4345
    4446    void activate();
  • trunk/src/util/shell_command.h

    r5151 r5152  
    131131  FUNCTOR_LIST(1)(l_INT);
    132132  FUNCTOR_LIST(1)(l_STRING);
     133  FUNCTOR_LIST(1)(l_FLOAT);
     134  FUNCTOR_LIST(1)(l_BOOL);
    133135#undef FUNCTOR_LIST
    134136
     
    140142  FUNCTOR_LIST(1)(l_INT);
    141143  FUNCTOR_LIST(1)(l_STRING);
     144  FUNCTOR_LIST(1)(l_FLOAT);
     145  FUNCTOR_LIST(1)(l_BOOL);
    142146#undef FUNCTOR_LIST
    143147
     
    152156  FUNCTOR_LIST(1)(l_INT);
    153157  FUNCTOR_LIST(1)(l_STRING);
     158  FUNCTOR_LIST(1)(l_FLOAT);
     159  FUNCTOR_LIST(1)(l_BOOL);
    154160#undef FUNCTOR_LIST
    155161    }
Note: See TracChangeset for help on using the changeset viewer.