Changeset 7721 in orxonox.OLD for trunk/src/orxonox.cc
- Timestamp:
- May 19, 2006, 4:05:41 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/orxonox.cc
r7720 r7721 414 414 bool showGui = false; 415 415 416 /// HACK HACK TEST417 418 419 #include "executor/executor_functional.h"420 421 #define EXECUTOR_FUNCTIONAL_USE_STATIC422 #include "executor/executor_functional.h"423 424 class TestClass : public BaseObject425 {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 HACK451 452 416 /********************************** 453 417 *** ORXONOX MAIN STARTING POINT *** … … 461 425 int main(int argc, char** argv) 462 426 { 463 TEST();464 427 CmdLinePrefsReader prefs; 465 428
Note: See TracChangeset
for help on using the changeset viewer.