5 * Created by Sarah Westcott on 1/23/09.
6 * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
10 #include "readtreecommand.h"
12 //**********************************************************************************************************************
13 ReadTreeCommand::ReadTreeCommand(){
15 globaldata = GlobalData::getInstance();
16 filename = globaldata->inputFileName;
18 //read in group map info.
19 treeMap = new TreeMap(globaldata->getGroupFile());
21 globaldata->gTreemap = treeMap;
23 read = new ReadNewickTree(filename);
27 cout << "Standard Error: " << e.what() << " has occurred in the ReadTreeCommand class Function ReadTreeCommand. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
31 cout << "An unknown error has occurred in the ReadTreeCommand class function ReadTreeCommand. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
36 //**********************************************************************************************************************
38 ReadTreeCommand::~ReadTreeCommand(){
42 //**********************************************************************************************************************
44 int ReadTreeCommand::execute(){
49 Tree* T = globaldata->gTree;
50 // T->createNewickFile();
55 cout << "Standard Error: " << e.what() << " has occurred in the ReadTreeCommand class Function execute. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
59 cout << "An unknown error has occurred in the ReadTreeCommand class function execute. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
64 //**********************************************************************************************************************