Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 23, 2007, 7:19:07 PM (17 years ago)
Author:
landauf
Message:

changed \n to std::endl

Location:
code/branches/FICN/src/orxonox/objects
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/orxonox/objects/test1.cc

    r670 r677  
    5252    void Test1::tick(float dt)
    5353    {
    54         std::cout << "Test1: " << this << "\n";
     54        std::cout << "Test1: " << this << std::endl;
    5555    }
    5656
     
    7272    void Test1::setUsefullClass1(Identifier* identifier)
    7373    {
    74         std::cout << "\n";
    75         std::cout << "Test1: usefullClass1->isA(Class(Test1)): " << identifier->isA(Class(Test1)) << "\n";
    76         std::cout << "Test1: usefullClass1->isA(Class(Test2)): " << identifier->isA(Class(Test2)) << "\n";
    77         std::cout << "Test1: usefullClass1->isA(Class(Test3)): " << identifier->isA(Class(Test3)) << "\n";
     74        std::cout << std::endl;
     75        std::cout << "Test1: usefullClass1->isA(Class(Test1)): " << identifier->isA(Class(Test1)) << std::endl;
     76        std::cout << "Test1: usefullClass1->isA(Class(Test2)): " << identifier->isA(Class(Test2)) << std::endl;
     77        std::cout << "Test1: usefullClass1->isA(Class(Test3)): " << identifier->isA(Class(Test3)) << std::endl;
    7878        this->usefullClass1_ = identifier;
    7979    }
     
    8181    void Test1::setUsefullClass2(Identifier* identifier)
    8282    {
    83         std::cout << "\n";
    84         std::cout << "Test1: usefullClass2->isA(Class(Test1)): " << identifier->isA(Class(Test1)) << "\n";
    85         std::cout << "Test1: usefullClass2->isA(Class(Test2)): " << identifier->isA(Class(Test2)) << "\n";
    86         std::cout << "Test1: usefullClass2->isA(Class(Test3)): " << identifier->isA(Class(Test3)) << "\n";
     83        std::cout << std::endl;
     84        std::cout << "Test1: usefullClass2->isA(Class(Test1)): " << identifier->isA(Class(Test1)) << std::endl;
     85        std::cout << "Test1: usefullClass2->isA(Class(Test2)): " << identifier->isA(Class(Test2)) << std::endl;
     86        std::cout << "Test1: usefullClass2->isA(Class(Test3)): " << identifier->isA(Class(Test3)) << std::endl;
    8787        this->usefullClass2_ = identifier;
    8888    }
     
    9090    void Test1::setUsefullClassOfTypeTest3(Identifier* identifier)
    9191    {
    92         std::cout << "\n";
    93         std::cout << "Test1: usefullClass3->isA(Class(Test1)): " << identifier->isA(Class(Test1)) << "\n";
    94         std::cout << "Test1: usefullClass3->isA(Class(Test2)): " << identifier->isA(Class(Test2)) << "\n";
    95         std::cout << "Test1: usefullClass3->isA(Class(Test3)): " << identifier->isA(Class(Test3)) << "\n";
     92        std::cout << std::endl;
     93        std::cout << "Test1: usefullClass3->isA(Class(Test1)): " << identifier->isA(Class(Test1)) << std::endl;
     94        std::cout << "Test1: usefullClass3->isA(Class(Test2)): " << identifier->isA(Class(Test2)) << std::endl;
     95        std::cout << "Test1: usefullClass3->isA(Class(Test3)): " << identifier->isA(Class(Test3)) << std::endl;
    9696        this->usefullClass3_ = identifier;
    9797    }
  • code/branches/FICN/src/orxonox/objects/test2.cc

    r670 r677  
    5353    void Test2::timerFunction1()
    5454    {
    55         std::cout << "Test2: 1 Sekunde\n";
     55        std::cout << "Test2: 1 Sekunde" << std::endl;
    5656    }
    5757
    5858    void Test2::timerFunction2()
    5959    {
    60         std::cout << "Test2: 5 Sekunden\n";
     60        std::cout << "Test2: 5 Sekunden" << std::endl;
    6161    }
    6262
    6363    void Test2::timerFunction3()
    6464    {
    65         std::cout << "Test2: 10 Sekunden sind um!\n";
     65        std::cout << "Test2: 10 Sekunden sind um!" << std::endl;
    6666    }
    6767
     
    8383    void Test2::setUsefullClass1(Identifier* identifier)
    8484    {
    85         std::cout << "\n";
    86         std::cout << "Test2: usefullClass1->isA(Class(Test1)): " << identifier->isA(Class(Test1)) << "\n";
    87         std::cout << "Test2: usefullClass1->isA(Class(Test2)): " << identifier->isA(Class(Test2)) << "\n";
    88         std::cout << "Test2: usefullClass1->isA(Class(Test3)): " << identifier->isA(Class(Test3)) << "\n";
     85        std::cout << std::endl;
     86        std::cout << "Test2: usefullClass1->isA(Class(Test1)): " << identifier->isA(Class(Test1)) << std::endl;
     87        std::cout << "Test2: usefullClass1->isA(Class(Test2)): " << identifier->isA(Class(Test2)) << std::endl;
     88        std::cout << "Test2: usefullClass1->isA(Class(Test3)): " << identifier->isA(Class(Test3)) << std::endl;
    8989        this->usefullClass1_ = identifier;
    9090    }
     
    9292    void Test2::setUsefullClass2(Identifier* identifier)
    9393    {
    94         std::cout << "\n";
    95         std::cout << "Test2: usefullClass2->isA(Class(Test1)): " << identifier->isA(Class(Test1)) << "\n";
    96         std::cout << "Test2: usefullClass2->isA(Class(Test2)): " << identifier->isA(Class(Test2)) << "\n";
    97         std::cout << "Test2: usefullClass2->isA(Class(Test3)): " << identifier->isA(Class(Test3)) << "\n";
     94        std::cout << std::endl;
     95        std::cout << "Test2: usefullClass2->isA(Class(Test1)): " << identifier->isA(Class(Test1)) << std::endl;
     96        std::cout << "Test2: usefullClass2->isA(Class(Test2)): " << identifier->isA(Class(Test2)) << std::endl;
     97        std::cout << "Test2: usefullClass2->isA(Class(Test3)): " << identifier->isA(Class(Test3)) << std::endl;
    9898        this->usefullClass2_ = identifier;
    9999    }
     
    101101    void Test2::setUsefullClassOfTypeTest3(Identifier* identifier)
    102102    {
    103         std::cout << "\n";
    104         std::cout << "Test2: usefullClass3->isA(Class(Test1)): " << identifier->isA(Class(Test1)) << "\n";
    105         std::cout << "Test2: usefullClass3->isA(Class(Test2)): " << identifier->isA(Class(Test2)) << "\n";
    106         std::cout << "Test2: usefullClass3->isA(Class(Test3)): " << identifier->isA(Class(Test3)) << "\n";
     103        std::cout << std::endl;
     104        std::cout << "Test2: usefullClass3->isA(Class(Test1)): " << identifier->isA(Class(Test1)) << std::endl;
     105        std::cout << "Test2: usefullClass3->isA(Class(Test2)): " << identifier->isA(Class(Test2)) << std::endl;
     106        std::cout << "Test2: usefullClass3->isA(Class(Test3)): " << identifier->isA(Class(Test3)) << std::endl;
    107107        this->usefullClass3_ = identifier;
    108108    }
  • code/branches/FICN/src/orxonox/objects/test3.cc

    r670 r677  
    7878
    7979    #define testandcout(code) \
    80       std::cout << #code << " " << code << "\n"
     80      std::cout << #code << " " << code << std::endl
    8181
    8282    void Test3::usefullClassesIsATest(Test1* test1)
    8383    {
    84         std::cout << "\n";
    85         std::cout << "Test1:\n";
     84        std::cout << std::endl;
     85        std::cout << "Test1:" << std::endl;
    8686        testandcout(test1->usefullClass1isA(Class(Test1)));
    8787        testandcout(test1->usefullClass1isA(Class(Test2)));
    8888        testandcout(test1->usefullClass1isA(Class(Test3)));
    89         std::cout << "\n";
     89        std::cout << std::endl;
    9090        testandcout(test1->usefullClass2isA(Class(Test1)));
    9191        testandcout(test1->usefullClass2isA(Class(Test2)));
    9292        testandcout(test1->usefullClass2isA(Class(Test3)));
    93         std::cout << "\n";
     93        std::cout << std::endl;
    9494        testandcout(test1->usefullClass3isA(Class(Test1)));
    9595        testandcout(test1->usefullClass3isA(Class(Test2)));
     
    9999    void Test3::usefullClassesIsATest(Test2* test2)
    100100    {
    101         std::cout << "\n";
    102         std::cout << "Test2:\n";
     101        std::cout << std::endl;
     102        std::cout << "Test2:" << std::endl;
    103103        testandcout(test2->usefullClass1isA(Class(Test1)));
    104104        testandcout(test2->usefullClass1isA(Class(Test2)));
    105105        testandcout(test2->usefullClass1isA(Class(Test3)));
    106         std::cout << "\n";
     106        std::cout << std::endl;
    107107        testandcout(test2->usefullClass2isA(Class(Test1)));
    108108        testandcout(test2->usefullClass2isA(Class(Test2)));
    109109        testandcout(test2->usefullClass2isA(Class(Test3)));
    110         std::cout << "\n";
     110        std::cout << std::endl;
    111111        testandcout(test2->usefullClass3isA(Class(Test1)));
    112112        testandcout(test2->usefullClass3isA(Class(Test2)));
Note: See TracChangeset for help on using the changeset viewer.