Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 25, 2007, 5:21:53 PM (16 years ago)
Author:
landauf
Message:

reimplementation of the factory and parts of the class-hierarchy-generating-algorithm. interfaces with protected constructors are now allowed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchie/src/orxonox.cc

    r243 r244  
    102102        startRenderLoop();
    103103*/
     104
     105        #define testandcout(code) \
     106          std::cout << #code << " " << code << "\n"
     107
    104108/*
    105109        std::cout << "Test 1\n";
     
    176180        }
    177181*/
    178 
    179         #define testandcout(code) \
    180           std::cout << #code << " " << code << "\n"
    181 
    182182/*
    183183        std::cout << "\n";
     
    205205        testandcout(test5_03->isA(Class(BaseObject)));
    206206        testandcout(test5_03->isA(Class(Interface1)));
    207 
    208207
    209208        std::cout << "\n";
     
    346345        std::cout << "\n";
    347346        std::cout << "A2 parent of A2B1C1: " << Class(A2)->isParentOf(Class(A2B1C1)) << "\n";
    348 
    349 
     347*/
     348/*
    350349        std::cout << "Test 7\n";
    351350        std::cout << "1\n";
     
    427426
    428427        std::cout << "\n4\n";
    429         BaseObject* test9_06 = Factory("A2B2");
     428        BaseObject* test9_06 = ID("A2B2")->fabricate();
    430429        std::cout << test9_06->getIdentifier()->getName() << "\n";
    431430
     
    436435        delete test9_06;
    437436*/
    438 
     437/*
    439438        std::cout << "Test 10\n";
    440439        Identifier* test10_01 = Class(A1B2);
     
    449448        BaseObject* test10_07;
    450449        for (int i = 0; i < 10; i++)
    451             test10_07 = Factory("A1B1C1");
     450            test10_07 = ID("A1B1C1")->fabricate();
    452451
    453452        std::cout << "1\n";
     
    484483        for (int i = 0; i < 10; i++)
    485484        {
    486             test10_08 = Factory("A2B1C1");
     485            test10_08 = ID("A2B1C1")->fabricate();
    487486            test10_08->name_ = "A2B1C1#";
    488487            test10_08->name_ += ('0' + i);
     
    534533        for (Iterator<A2B1C1> it; it; --it)
    535534            std::cout << "Name: " << it->name_ << "\n";
    536 
     535*/
    537536
    538537      }
Note: See TracChangeset for help on using the changeset viewer.