bpp-popgen3  3.0.0
AbstractIDataSet.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: The Bio++ Development Group
2 //
3 // SPDX-License-Identifier: CECILL-2.1
4 
5 #ifndef _ABSTRACTIDATASET_H_
6 #define _ABSTRACTIDATASET_H_
7 
8 #include "IDataSet.h"
9 
10 #include <Bpp/Exceptions.h>
11 
12 namespace bpp
13 {
20  public IDataSet
21 {
22 public:
23  // Class destructor
24  virtual ~AbstractIDataSet();
25 
26 public:
31  virtual void read(std::istream& is, DataSet& data_set) = 0;
32 
33  virtual void read(const std::string& path, DataSet& data_set);
34 
35  virtual DataSet* read(std::istream& is);
36 
37  virtual DataSet* read(const std::string& path);
41 };
42 } // end of namespace bpp;
43 
44 #endif // _ABSTRACTIDATASET_H_
Partial implementation of the DataSet Input interface.
virtual void read(std::istream &is, DataSet &data_set)=0
Read a DataSet on istream.
The DataSet class.
Definition: DataSet.h:37
The IDataSet interface.
Definition: IDataSet.h:21