2 * readsabundfilecommand.cpp
5 * Created by Sarah Westcott on 1/2/09.
6 * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
10 #include "readsabundfilecommand.h"
12 //**********************************************************************************************************************
13 ReadSAbundFileCommand::ReadSAbundFileCommand(){
15 globaldata = GlobalData::getInstance();
16 filename = globaldata->inputFileName;
17 read = new ReadPhilFile(filename);
20 cout << "Standard Error: " << e.what() << " has occurred in the ReadSAbundFileCommand class Function ReadSAbundFileCommand. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
24 cout << "An unknown error has occurred in the ReadSAbundFileCommand class function ReadSAbundFileCommand. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
29 //**********************************************************************************************************************
31 ReadSAbundFileCommand::~ReadSAbundFileCommand(){
35 //**********************************************************************************************************************
37 int ReadSAbundFileCommand::execute(){
39 read->read(&*globaldata);
43 cout << "Standard Error: " << e.what() << " has occurred in the ReadSAbundFileCommand class Function execute. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
47 cout << "An unknown error has occurred in the ReadSAbundFileCommand class function execute. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
51 //**********************************************************************************************************************