- //output first group
- m->mothurOut(groupN); m->mothurOutEndLine();
- out << groupN << '\t' << groupN << endl;
-
- //get rest of line
- for(int i=0;i<num;i++){
- in >> inputData;
- }
-
- if (m->control_pressed) { outputTypes.clear(); in.close(); out.close(); remove(outputFile.c_str()); return 0; }
-
- if (in.eof() != true) { in >> nextLabel; }
-
- //read the rest of the groups info in
- while ((nextLabel == holdLabel) && (in.eof() != true)) {
- if (m->control_pressed) { outputTypes.clear(); in.close(); out.close(); remove(outputFile.c_str()); return 0; }
-
- in >> groupN >> num;
- count++;
-
- //output next group
- m->mothurOut(groupN); m->mothurOutEndLine();
- out << groupN << '\t' << groupN << endl;
-
- //fill vector.
- for(int i=0;i<num;i++){
- in >> inputData;
- }
-
- if (in.eof() != true) { in >> nextLabel; }
+ for (int i = 0; i < lookup.size(); i++) {
+ out << lookup[i]->getGroup() << '\t' << lookup[i]->getGroup() << endl;
+ m->mothurOut(lookup[i]->getGroup()); m->mothurOutEndLine();
+ delete lookup[i];