Changeset 366 for code/branches/objecthierarchy/src/orxonox/orxonox.cc
- Timestamp:
- Dec 2, 2007, 2:07:01 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/orxonox/orxonox.cc
r362 r366 474 474 delete test9_06; 475 475 */ 476 /* 476 477 477 std::cout << "Test 10\n"; 478 478 Identifier* test10_01 = Class(A1B2); … … 509 509 { 510 510 test10_08 = ID("A2B1C1")->fabricate(); 511 test10_08->name_ = "A2B1C1#"; 512 test10_08->name_ += ('0' + i); 511 std::string objName = "A2B1C1#"; 512 objName += '0' + i; 513 test10_08->setName(objName); 513 514 514 515 if (i == 0) … … 531 532 532 533 for (Iterator<A2B1C1> it = ObjectList<A2B1C1>::start(); it; ++it) 533 std::cout << "Name: " << it-> name_<< "\n";534 std::cout << "Name: " << it->getName() << "\n"; 534 535 535 536 std::cout << "3\n"; 536 537 for (Iterator<A2B1C1> it = ObjectList<A2B1C1>::end(); it; --it) 537 std::cout << "Name: " << it-> name_<< "\n";538 std::cout << "Name: " << it->getName() << "\n"; 538 539 539 540 std::cout << "4\n"; … … 553 554 std::cout << "5\n"; 554 555 for (Iterator<A2B1C1> it = ObjectList<A2B1C1>::start(); it; ++it) 555 std::cout << "Name: " << it-> name_<< "\n";556 std::cout << "Name: " << it->getName() << "\n"; 556 557 557 558 std::cout << "6\n"; 558 559 for (Iterator<A2B1C1> it = ObjectList<A2B1C1>::end(); it; --it) 559 std::cout << "Name: " << it-> name_<< "\n";560 std::cout << "Name: " << it->getName() << "\n"; 560 561 561 562 std::cout << "7\n"; … … 575 576 std::cout << "8\n"; 576 577 for (Iterator<A2B1C1> it = ObjectList<A2B1C1>::start(); it; ++it) 577 std::cout << "Name: " << it-> name_<< "\n";578 std::cout << "Name: " << it->getName() << "\n"; 578 579 579 580 std::cout << "9\n"; 580 581 for (Iterator<A2B1C1> it = ObjectList<A2B1C1>::end(); it; --it) 581 std::cout << "Name: " << it-> name_<< "\n";582 std::cout << "Name: " << it->getName() << "\n"; 582 583 583 584 std::cout << "10\n"; … … 597 598 std::cout << "11\n"; 598 599 for (Iterator<A2B1C1> it = ObjectList<A2B1C1>::start(); it; ++it) 599 std::cout << "Name: " << it-> name_<< "\n";600 std::cout << "Name: " << it->getName() << "\n"; 600 601 601 602 std::cout << "12\n"; 602 603 for (Iterator<A2B1C1> it = ObjectList<A2B1C1>::end(); it; --it) 603 std::cout << "Name: " << it-> name_<< "\n";604 std::cout << "Name: " << it->getName() << "\n"; 604 605 605 606 std::cout << "13\n"; 606 */ 607 607 608 } 608 609
Note: See TracChangeset
for help on using the changeset viewer.