bpp-popgen3  3.0.0
IDataSet.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 _IDATASET_H_
6 #define _IDATASET_H_
7 
8 #include "IODataSet.h"
9 
10 #include <Bpp/Exceptions.h>
11 
12 namespace bpp
13 {
19 class IDataSet :
20  public virtual IODataSet
21 {
22 public:
23  // Class destructor
24  virtual ~IDataSet() {}
25 
26 public:
30  virtual void read(std::istream& is, DataSet& data_set) = 0;
31 
35  virtual void read(const std::string& path, DataSet& data_set) = 0;
36 
40  virtual DataSet* read(std::istream& is) = 0;
41 
45  virtual DataSet* read(const std::string& path) = 0;
46 };
47 } // end of namespace bpp;
48 
49 #endif // _IDATASET_H_
The DataSet class.
Definition: DataSet.h:37
The IDataSet interface.
Definition: IDataSet.h:21
virtual void read(std::istream &is, DataSet &data_set)=0
Read a DataSet on istream.
virtual DataSet * read(const std::string &path)=0
Read a text file and return a DataSet.
virtual DataSet * read(std::istream &is)=0
Read istream and return a DataSet.
virtual ~IDataSet()
Definition: IDataSet.h:24
virtual void read(const std::string &path, DataSet &data_set)=0
Read a DataSet from a text file.
Interface for input/output with DataSet.
Definition: IODataSet.h:28