--- projects/cms/source/host/c++/SysMon.cpp 2001/03/23 15:00:50 1.4 +++ projects/cms/source/host/c++/SysMon.cpp 2001/03/23 16:57:03 1.7 @@ -247,7 +247,7 @@ string SysMon::getData(){ if ( debug == 1 ){ std::cout << "Adding Element + attributes" << endl; } - count++; + // count++; } // if isAttrib = 0; attributeLevel = ""; @@ -283,7 +283,7 @@ string SysMon::getData(){ if ( attributeLevel != levels[level] ){ xml.addElement(attributeLevel,attributes,""); if ( debug == 1 ){ - std::cout << "Adding Element + attributes" << endl; + std::cout << "Adding Element + attributes1" << endl; } attributeLevel = ""; attributes = ""; @@ -292,7 +292,7 @@ string SysMon::getData(){ if ( count == titlepointer ){ xml.addElement(attributeLevel,attributes,""); if ( debug == 1 ){ - std::cout << "Adding Element + attributes" << endl; + std::cout << "Adding Element + attributes2" << endl; } attributeLevel = ""; attributes = ""; @@ -308,7 +308,7 @@ string SysMon::getData(){ if ( attributeLevel != "" ){ xml.addElement(attributeLevel,attributes,""); if ( debug == 1 ){ - std::cout << "Adding Element + attributes" << endl; + std::cout << "Adding Element + attributes3" << endl; } attributeLevel = ""; attributes = ""; @@ -330,19 +330,20 @@ string SysMon::getData(){ // it is the same level, just add this as another element if ( isAttrib ){ attributes += levels[level+2]; - attributes += "="; + attributes += "=\""; attributes += values[count]; - attributes += " "; + attributes += "\" "; // now check if this is the last element } else { xml.addElement(levels[level], values[count]); + count++; if ( debug == 1 ){ std::cout << "Adding Element" << endl; } } - count++; + } else { // gotta change it @@ -416,7 +417,6 @@ string SysMon::getData(){ std::cout << "\n"; } - std::cout << xml.returnXML() << endl; // return the string return xml.returnXML();