Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7721 in orxonox.OLD for trunk/src/orxonox.cc


Ignore:
Timestamp:
May 19, 2006, 4:05:41 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: introduced the absolutely new, much faster, more templated, and easier to look at Executor, and use it directly inside the LoadParam-Class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/orxonox.cc

    r7720 r7721  
    414414bool showGui = false;
    415415
    416 /// HACK HACK TEST
    417 
    418 
    419 #include "executor/executor_functional.h"
    420 
    421 #define EXECUTOR_FUNCTIONAL_USE_STATIC
    422 #include "executor/executor_functional.h"
    423 
    424 class TestClass : public BaseObject
    425 {
    426 public:
    427   TestClass() {};
    428 
    429   void printTest() { printf ("TEST\n"); };
    430   void printTestInt(int i) { printf ("%d\n", i); };
    431   void printTestBool(bool b) { printf("%d\n", (int)b); };
    432   void printTwoVals(int b, int i) { printf ("%d %d\n", b, i); };
    433   void printStrings(const std::string& name) { printf("String:: '%s'\n", name.c_str()); };
    434   static void printStatic() { printf("STATIC\n");};
    435 };
    436 
    437 void TEST()
    438 {
    439   TestClass test;
    440   SubString testStrings("1, 2, 3", ",", SubString::WhiteSpaces, false);
    441   (*createExecutor<TestClass>(&TestClass::printTest))(&test, testStrings);
    442   (*createExecutor<TestClass>(&TestClass::printTestInt))(&test, testStrings);
    443   (*createExecutor<TestClass>(&TestClass::printTestBool))(&test, testStrings);
    444   (*createExecutor<TestClass>(&TestClass::printTwoVals))(&test, testStrings);
    445   (*createExecutor<TestClass>(&TestClass::printStatic))(&test, testStrings);
    446   (*createExecutor<TestClass>(&TestClass::printStrings))(&test, testStrings);
    447 
    448 }
    449 
    450 //// HACK HACK
    451 
    452416/**********************************
    453417*** ORXONOX MAIN STARTING POINT ***
     
    461425int main(int argc, char** argv)
    462426{
    463   TEST();
    464427  CmdLinePrefsReader prefs;
    465428
Note: See TracChangeset for help on using the changeset viewer.