Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 17, 2008, 10:12:55 PM (17 years ago)
Author:
landauf
Message:

bugfix

Location:
code/branches/core2/src/orxonox/core
Files:
2 edited

Legend:

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

    r896 r897  
    116116            xmlfile.LoadFile();
    117117            ticpp::Element rootElement;
    118             rootElement.SetAttribute("name", "rootNamespace");
     118            rootElement.SetAttribute("name", "root");
    119119
    120120            for (ticpp::Iterator<ticpp::Element> child = xmlfile.FirstChildElement(false); child != child.end(); child++)
     
    124124            rootNamespace->setLoaderIndentation("    ");
    125125            rootNamespace->setLevel(level);
     126            rootNamespace->setNamespace(rootNamespace);
    126127            rootNamespace->deleteNamespaceNodesAfterDestruction(true);
    127128            rootNamespace->XMLPort(rootElement, true);
  • code/branches/core2/src/orxonox/core/Namespace.cc

    r896 r897  
    6060    void Namespace::XMLPort(Element& xmlelement, bool loading)
    6161    {
     62std::cout << "1_1\n";
    6263        BaseObject::XMLPort(xmlelement, loading);
     64std::cout << "1_2\n";
    6365
    6466        std::string name = this->getName();
     67std::cout << "1_3\n";
    6568        unsigned int pos = 0;
    6669        while ((pos = name.find(',')) != std::string::npos)
     
    7275        while ((pos = name.find('\t')) != std::string::npos)
    7376            name.replace(pos, 1, " ");
    74         SubString tokens(name, " ", '\0', false, '\\', '"', '\0', '\0', '\0');
     77std::cout << "1_4\n";
     78        SubString tokens(name, " ", "", false, '\\', '"', '\0', '\0', '\0');
     79std::cout << "1_5\n";
    7580        for (unsigned int i = 0; i < tokens.size(); i++)
    7681        {
     82std::cout << "1_6\n";
    7783            for (std::set<NamespaceNode*>::iterator it = this->getNamespace()->representingNamespaces_.begin(); it != this->getNamespace()->representingNamespaces_.end(); ++it)
    7884            {
     85std::cout << "1_7\n";
    7986                std::set<NamespaceNode*> temp = (*it)->getNodeRelative(tokens[i]);
     87std::cout << "1_8\n";
    8088                this->representingNamespaces_.insert(temp.begin(), temp.end());
     89std::cout << "1_9\n";
    8190            }
    8291        }
     92std::cout << "1_10\n";
    8393
    8494        XMLPortParam(Namespace, "operator", setOperator, getOperator, xmlelement, loading);
Note: See TracChangeset for help on using the changeset viewer.