Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 19, 2008, 12:38:32 AM (16 years ago)
Author:
landauf
Message:

Namespaces are working now. I love this feature, can't stop playing with it :D

File:
1 edited

Legend:

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

    r899 r901  
    115115            ticpp::Document xmlfile(level->getFile());
    116116            xmlfile.LoadFile();
     117
    117118            ticpp::Element rootElement;
    118119            rootElement.SetAttribute("name", "root");
     120            rootElement.SetAttribute("bAutogenerated", true);
    119121
    120122            for (ticpp::Iterator<ticpp::Element> child = xmlfile.FirstChildElement(false); child != child.end(); child++)
     
    126128            rootNamespace->setLevel(level);
    127129            rootNamespace->setNamespace(rootNamespace);
    128             rootNamespace->deleteNamespaceNodesAfterDestruction(true);
     130            rootNamespace->setRoot(true);
    129131            rootNamespace->XMLPort(rootElement, true);
    130132
    131133            COUT(0) << "Finished loading " << level->getFile() << "." << std::endl;
     134
     135            COUT(4) << "Namespace-tree:" << std::endl << rootNamespace->toString("  ") << std::endl;
    132136
    133137            return true;
Note: See TracChangeset for help on using the changeset viewer.