Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7428 in orxonox.OLD for trunk/src/lib/lang/class_list.cc


Ignore:
Timestamp:
Apr 29, 2006, 12:13:38 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: move the Pollution of the ShellCommand to some other File

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/lang/class_list.cc

    r7403 r7428  
    2222#include "debug.h"
    2323#include <string.h>
    24 #include <math.h>
     24#include <cmath>
    2525#include <algorithm>
    26 #include "shell_command.h"
    27 
    2826using namespace std;
    29 
    30 #ifndef NO_SHELL_COMMAND
    31 SHELL_COMMAND_STATIC(debug, ClassList, ClassList::debugS)
    32     ->describe("Shows all registered classes, if param1: is a valid ClassName only values of this class are shown. param2: how much output")
    33     ->defaultValues(MT_NULL, 1);
    34 #endif
    3527
    3628/**
     
    353345    {
    354346      lenCount = 1;
    355       while (pow(10, lenCount) <= (*cl).objectList.size())
     347      while (std::pow((float)10, (int)lenCount) <= (*cl).objectList.size())
    356348        ++lenCount;
    357349      for (int i=0; i < 30-(*cl).className.size() - lenCount; i++)
Note: See TracChangeset for help on using the changeset viewer.