7 * Created by Sarah Westcott on 1/22/09.
8 * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
16 #define SKIPLINE(f,c) {while((c=f.get())!=EOF && ((c) != '\n')){}}
20 /****************************************************************************/
25 virtual ~ReadTree() {};
27 virtual int read(TreeMap*) = 0;
28 int readSpecialChar(istream&, char, string);
29 int readNodeChar(istream& f);
30 float readBranchLength(istream& f);
32 vector<Tree*> getTrees() { return Trees; }
38 int numNodes, numLeaves;
44 /****************************************************************************/
46 class ReadNewickTree : public ReadTree {
49 ReadNewickTree(string file) : treeFile(file) { m->openInputFile(file, filehandle); readOk = 0; }
55 int readNewickInt(istream&, int&, Tree*, TreeMap*);
56 int readTreeString(TreeMap*);
57 string nexusTranslation(TreeMap*);
61 int readOk; // readOk = 0 means success, readOk = 1 means errors.
65 /****************************************************************************/