5 * Created by Thomas Ryabin on 2/2/09.
6 * Copyright 2009 __MyCompanyName__. All rights reserved.
10 #include "getgroupcommand.h"
13 GetgroupCommand::GetgroupCommand(){
15 globaldata = GlobalData::getInstance();
16 groupMap = globaldata->gGroupmap;
19 cout << "Standard Error: " << e.what() << " has occurred in the GetgroupCommand class Function GetgroupCommand. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
23 cout << "An unknown error has occurred in the GetgroupCommand class function GetgroupCommand. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
29 //**********************************************************************************************************************
31 GetgroupCommand::~GetgroupCommand(){
34 //**********************************************************************************************************************
36 int GetgroupCommand::execute(){
38 vector<string> groupNames = groupMap->namesOfGroups;
39 for(int i = 0; i < groupNames.size(); i++)
40 cout << groupNames[i] << "\n";
45 cout << "Standard Error: " << e.what() << " has occurred in the GetgroupCommand class Function execute. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
49 cout << "An unknown error has occurred in the GetgroupCommand class function execute. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";