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