Commit d40dc407 authored by Carsten Kemena's avatar Carsten Kemena

[Tree] changed ifstream to Input

parent 85e1d51e
Pipeline #712 passed with stages
in 1 minute and 25 seconds
......@@ -34,6 +34,7 @@
#include "Tree.hpp"
#include "../utility/stringHelpers.hpp"
#include "../external/Input.hpp"
namespace BioSeqDataLib
......@@ -67,7 +68,7 @@ class PhylogeneticTree : public Tree<TreeNodePhylo<DataType> >
private:
bool isRooted_;
std::string readNexus_(std::ifstream &inS);
std::string readNexus_(AlgorithmPack::Input &inS);
public:
/**
......@@ -367,8 +368,7 @@ template<typename DataType>
void
PhylogeneticTree<DataType>::read(const std::string &inFile)
{
std::ifstream inS;
inS.exceptions ( std::ifstream::failbit | std::ifstream::badbit );
AlgorithmPack::Input inS;
inS.open(inFile);
std::string treeLine;
getline(inS, treeLine);
......@@ -380,7 +380,7 @@ PhylogeneticTree<DataType>::read(const std::string &inFile)
template<typename DataType>
std::string
PhylogeneticTree<DataType>::readNexus_(std::ifstream &inS)
PhylogeneticTree<DataType>::readNexus_(AlgorithmPack::Input &inS)
{
std::string line;
while (getline(inS, line))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment