Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

bugfix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.