7 * Created by Sarah Westcott on 1/22/09.
8 * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
14 #include "globaldata.hpp"
15 #include "utilities.hpp"
19 #define SKIPLINE(f,c) {while((c=f.get())!=EOF && ((c) != '\n')){}}
23 /****************************************************************************/
30 virtual int read() = 0;
31 int readSpecialChar(istream&, char, string);
32 int readNodeChar(istream& f);
33 float readBranchLength(istream& f);
36 GlobalData* globaldata;
37 int numNodes, numLeaves;
42 /****************************************************************************/
44 class ReadNewickTree : public ReadTree {
47 ReadNewickTree(string file) : treeFile(file) { openInputFile(file, filehandle); readOk = 0; }
53 int readNewickInt(istream&, int&, Tree*);
55 void nexusTranslation();
59 int readOk; // readOk = 0 means success, readOk = 1 means errors.
63 /****************************************************************************/