5 * Created by Thomas Ryabin on 2/2/09.
6 * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
10 #include "getgroupcommand.h"
13 GetgroupCommand::GetgroupCommand(){
15 globaldata = GlobalData::getInstance();
16 groupMap = globaldata->gGroupmap;
17 outputFile = globaldata->inputFileName + ".bootGroups";
18 openOutputFile(outputFile, out);
21 cout << "Standard Error: " << e.what() << " has occurred in the GetgroupCommand class Function GetgroupCommand. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
25 cout << "An unknown error has occurred in the GetgroupCommand class function GetgroupCommand. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
31 //**********************************************************************************************************************
33 GetgroupCommand::~GetgroupCommand(){
36 //**********************************************************************************************************************
38 int GetgroupCommand::execute(){
40 vector<string> groupNames = groupMap->namesOfGroups;
41 for(int i = 0; i < groupNames.size(); i++) {
42 cout << groupNames[i] << "\n";
43 out << groupNames[i] << "\t" << groupNames[i] << "\n";
50 cout << "Standard Error: " << e.what() << " has occurred in the GetgroupCommand class Function execute. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
54 cout << "An unknown error has occurred in the GetgroupCommand class function execute. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";