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