bpp-popgen3  3.0.0
ODataSet.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 _ODATASET_H_
6 #define _ODATASET_H_
7 
8 #include "IODataSet.h"
9 
10 #include <Bpp/Exceptions.h>
11 
12 namespace bpp
13 {
19 class ODataSet :
20  public virtual IODataSet
21 {
22 public:
23  // Class destructor
24  virtual ~ODataSet() {}
25 
26 public:
30  virtual void write(std::ostream& os, const DataSet& data_set) const = 0;
31 
35  virtual void write(const std::string& path, const DataSet& data_set, bool overwrite) const = 0;
36 };
37 } // end of namespace bpp;
38 
39 #endif // _ODATASET_H_
The DataSet class.
Definition: DataSet.h:37
Interface for input/output with DataSet.
Definition: IODataSet.h:28
The ODataSet interface.
Definition: ODataSet.h:21
virtual void write(const std::string &path, const DataSet &data_set, bool overwrite) const =0
Write a DataSet in a text file.
virtual ~ODataSet()
Definition: ODataSet.h:24
virtual void write(std::ostream &os, const DataSet &data_set) const =0
Write a DataSet on ostream.