Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

changed \n to std::endl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/orxonox/core/Identifier.h

    r673 r677  
    117117            {
    118118                hierarchyCreatingCounter_s++;
    119                 COUT(4) << "*** Increased Hierarchy-Creating-Counter to " << hierarchyCreatingCounter_s << "\n";
     119                COUT(4) << "*** Increased Hierarchy-Creating-Counter to " << hierarchyCreatingCounter_s << std::endl;
    120120            }
    121121
     
    126126            {
    127127                hierarchyCreatingCounter_s--;
    128                 COUT(4) << "*** Decreased Hierarchy-Creating-Counter to " << hierarchyCreatingCounter_s << "\n";
     128                COUT(4) << "*** Decreased Hierarchy-Creating-Counter to " << hierarchyCreatingCounter_s << std::endl;
    129129            }
    130130
     
    201201    ClassIdentifier<T>* ClassIdentifier<T>::registerClass(const IdentifierList* parents, const std::string& name, bool bRootClass)
    202202    {
    203         COUT(4) << "*** Register Class in " << name << "-Singleton.\n";
     203        COUT(4) << "*** Register Class in " << name << "-Singleton." << std::endl;
    204204
    205205        // It's a singleton, so maybe we have to create it first
    206206        if (!pointer_s)
    207207        {
    208             COUT(4) << "*** Register Class in " << name << "-Singleton -> Create Singleton.\n";
     208            COUT(4) << "*** Register Class in " << name << "-Singleton -> Create Singleton." << std::endl;
    209209            pointer_s = new ClassIdentifier();
    210210        }
     
    214214        {
    215215            // If no: We have to store the informations and initialize the Identifier
    216 
    217             COUT(4) << "*** Register Class in " << name << "-Singleton -> Initialize Singleton.\n";
     216            COUT(4) << "*** Register Class in " << name << "-Singleton -> Initialize Singleton." << std::endl;
    218217            pointer_s->name_ = name;
    219 //            Factory::add(name, pointer_s); // Add the Identifier to the Factory
    220 
    221218            if (bRootClass)
    222219                pointer_s->initialize(NULL); // If a class is derived from two interfaces, the second interface might think it's derived from the first because of the order of constructor-calls. Thats why we set parents to zero in that case.
     
    236233        if (!pointer_s)
    237234        {
    238             COUT(4) << "*** Create Singleton.\n";
     235            COUT(4) << "*** Create Singleton." << std::endl;
    239236            pointer_s = new ClassIdentifier();
    240237        }
     
    250247    void ClassIdentifier<T>::addObject(T* object)
    251248    {
    252         COUT(4) << "*** Added object to " << ClassIdentifier<T>::getIdentifier()->getName() << "-list.\n";
     249        COUT(4) << "*** Added object to " << ClassIdentifier<T>::getIdentifier()->getName() << "-list." << std::endl;
    253250        object->getMetaList().add(ClassIdentifier<T>::getIdentifier()->objects_, ClassIdentifier<T>::getIdentifier()->objects_->add(object));
    254251    }
     
    285282                if (!identifier->isA(ClassIdentifier<T>::getIdentifier()))
    286283                {
    287                     COUT(1) << "Error: Class " << identifier->getName() << " is not a " << ClassIdentifier<T>::getIdentifier()->getName() << "!\n";
    288                     COUT(1) << "Error: SubclassIdentifier<" << ClassIdentifier<T>::getIdentifier()->getName() << "> = Class(" << identifier->getName() << ") is forbidden.\n";
    289                     COUT(1) << "Aborting...\n";
     284                    COUT(1) << "Error: Class " << identifier->getName() << " is not a " << ClassIdentifier<T>::getIdentifier()->getName() << "!" << std::endl;
     285                    COUT(1) << "Error: SubclassIdentifier<" << ClassIdentifier<T>::getIdentifier()->getName() << "> = Class(" << identifier->getName() << ") is forbidden." << std::endl;
     286                    COUT(1) << "Aborting..." << std::endl;
    290287                    abort();
    291288                }
     
    331328                    if (this->identifier_)
    332329                    {
    333                         COUT(1) << "Error: Class " << this->identifier_->getName() << " is not a " << ClassIdentifier<T>::getIdentifier()->getName() << "!\n";
    334                         COUT(1) << "Error: Couldn't fabricate a new Object.\n";
    335                         COUT(1) << "Aborting...\n";
     330                        COUT(1) << "Error: Class " << this->identifier_->getName() << " is not a " << ClassIdentifier<T>::getIdentifier()->getName() << "!" << std::endl;
     331                        COUT(1) << "Error: Couldn't fabricate a new Object." << std::endl;
     332                        COUT(1) << "Aborting..." << std::endl;
    336333                    }
    337334                    else
    338335                    {
    339                         COUT(1) << "Error: Couldn't fabricate a new Object - Identifier is undefined.\n";
    340                         COUT(1) << "Aborting...\n";
     336                        COUT(1) << "Error: Couldn't fabricate a new Object - Identifier is undefined." << std::endl;
     337                        COUT(1) << "Aborting..." << std::endl;
    341338                    }
    342339
Note: See TracChangeset for help on using the changeset viewer.