Esempio n. 1
0
/** write a nodelist to the given textstream */
void NodeList::write(QTextStream &fp, QString groupFileName)
{
    QDictIterator<Node> it(*this);
    if (it.current()) {
        fp << "<group ";
        if (!groupFileName.isEmpty())
            fp << "id=\"" << groupId_  << "\" file=\"" << groupFileName << "\" ";
        fp << attribList_;
        fp.precision(8);
        fp << "file_geoNorth=\"" <<gN_<< "\"file_geoWest=\"" <<gW_<< "\"file_geoEast=\"" <<gE_<< "\"file_geoSouth=\"" <<gS_<< "\"";
        fp << " >" << endl;
        for (; it.current(); ++it) {
            (*it)->write(fp);
        }

        fp << "</group>" << endl;
    }

}