Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 12, 2008, 3:49:41 AM (17 years ago)
Author:
landauf
Message:

added code for testing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core/src/orxonox/core/ClassTreeMask.cc

    r803 r804  
    237237    bool ClassTreeMask::isIncluded(ClassTreeMaskNode* node, const Identifier* subclass) const
    238238    {
     239std::cout << "1_0: " << ClassIdentifier<BaseObject>::getIdentifier() << std::endl;
     240std::cout << "1_1: " << subclass->getName() << " (" << subclass << ") / " << node->getClass()->getName() << " (" << node->getClass() << ")" << std::endl;
    239241        // Check if the searched subclass is of the same type as the class in the current node or a derivative
    240242        if (subclass->isA(node->getClass()))
    241243        {
     244std::cout << "1_2\n";
    242245            // Check for the special case
    243246            if (subclass == node->getClass())
     247            {
     248std::cout << "1_3\n";
    244249                return node->isIncluded();
    245 
     250            }
     251
     252std::cout << "1_4\n";
    246253            // Go through the list of subnodes and look for a node containing the searched subclass
    247254            for (std::list<ClassTreeMaskNode*>::iterator it = node->subnodes_.begin(); it != node->subnodes_.end(); ++it)
     
    249256                    return isIncluded(*it, subclass);
    250257
     258std::cout << "1_5\n";
    251259            // There is no subnode containing our class -> the rule of the current node takes in effect
    252260            return node->isIncluded();
     
    254262        else
    255263        {
     264std::cout << "1_6\n";
    256265            // The class is not included in the mask: return false
    257266            return false;
Note: See TracChangeset for help on using the changeset viewer.