class ReadTree {
public:
ReadTree();
- ~ReadTree() {};
+ virtual ~ReadTree() {};
virtual int read() = 0;
int readSpecialChar(istream&, char, string);
protected:
GlobalData* globaldata;
int numNodes, numLeaves;
+ MothurOut* m;
};
class ReadNewickTree : public ReadTree {
public:
- ReadNewickTree(string file) : treeFile(file) { openInputFile(file, filehandle); readOk = 0; }
+ ReadNewickTree(string file) : treeFile(file) { m->openInputFile(file, filehandle); readOk = 0; }
~ReadNewickTree() {};
int read();