5 * Created by Thomas Ryabin on 4/13/09.
6 * Copyright 2009 __MyCompanyName__. All rights reserved.
10 #include "readseqscommand.h"
12 //**********************************************************************************************************************
13 ReadSeqsCommand::ReadSeqsCommand(){
15 globaldata = GlobalData::getInstance();
19 cout << "Standard Error: " << e.what() << " has occurred in the ReadOtuCommand class Function ReadOtuCommand. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
23 cout << "An unknown error has occurred in the ReadOtuCommand class function ReadOtuCommand. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
28 //**********************************************************************************************************************
30 ReadSeqsCommand::~ReadSeqsCommand(){
31 //delete readFasta->getDB();
32 // delete readNexus->getDB();
33 // delete readClustal->getDB();
34 // delete readPhylip->getDB();
37 //**********************************************************************************************************************
39 int ReadSeqsCommand::execute(){
43 //fb.open ("fasta.txt",ios::out);
45 // SequenceDB* db = readFasta->getDB();
47 //fb.open("nexus.txt",ios::out);
49 // SequenceDB* db = readNexus->getDB();
51 //fb.open("clustal.txt",ios::out);
52 // readClustal->read();
53 // SequenceDB* db = readClustal->getDB();
55 //fb.open("phylip.txt",ios::out);
56 // readPhylip->read();
57 // SequenceDB* db = readPhylip->getDB();
61 //for(int i = 0; i < db->size(); i++) {
62 // cout << db->get(i).getLength() << "\n" << db->get(i).getName() << ": " << db->get(i).getUnaligned() << "\n\n";
72 cout << "Standard Error: " << e.what() << " has occurred in the ReadOtuCommand class Function execute. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
76 cout << "An unknown error has occurred in the ReadOtuCommand class function execute. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
80 //**********************************************************************************************************************