X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=readsharedcommand.cpp;fp=readsharedcommand.cpp;h=0000000000000000000000000000000000000000;hb=39ef0543b73cb12dfc64529522b66ad3df7527d0;hp=003515698532544dc7dafd3a3cdcd2cb63cac64f;hpb=7e0cf6431e287072c40b2c10c9e08199fce29ef4;p=mothur.git diff --git a/readsharedcommand.cpp b/readsharedcommand.cpp deleted file mode 100644 index 0035156..0000000 --- a/readsharedcommand.cpp +++ /dev/null @@ -1,52 +0,0 @@ -/* - * readsharedcommand.cpp - * Mothur - * - * Created by Sarah Westcott on 2/12/09. - * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved. - * - */ - -#include "readsharedcommand.h" - -//********************************************************************************************************************** -ReadSharedCommand::ReadSharedCommand(){ - try { - globaldata = GlobalData::getInstance(); - filename = globaldata->inputFileName; - read = new ReadPhilFile(filename); - } - catch(exception& e) { - cout << "Standard Error: " << e.what() << " has occurred in the ReadSharedCommand class Function ReadSharedCommand. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; - exit(1); - } - catch(...) { - cout << "An unknown error has occurred in the ReadSharedCommand class function ReadSharedCommand. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; - exit(1); - } -} - -//********************************************************************************************************************** - -ReadSharedCommand::~ReadSharedCommand(){ - delete read; -} - -//********************************************************************************************************************** - -int ReadSharedCommand::execute(){ - try { - read->read(&*globaldata); - - return 0; - } - catch(exception& e) { - cout << "Standard Error: " << e.what() << " has occurred in the ReadSharedCommand class Function execute. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; - exit(1); - } - catch(...) { - cout << "An unknown error has occurred in the ReadSharedCommand class function execute. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; - exit(1); - } -} -//********************************************************************************************************************** \ No newline at end of file