bpp-popgen3  3.0.0
DarwinDon.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 _DARWIN_DON_H_
6 #define _DARWIN_DON_H_
7 
8 #include <Bpp/Exceptions.h>
9 #include <Bpp/Io/FileTools.h>
10 #include <Bpp/Text/TextTools.h>
12 
13 // From local Pop
14 #include "../AbstractODataSet.h"
15 
16 namespace bpp
17 {
23 class DarwinDon :
24  public virtual AbstractODataSet
25 {
26 public:
27  // Constructor and destructor
28  DarwinDon();
29  ~DarwinDon();
30 
31 public:
36  void write(std::ostream& os, const DataSet& data_set) const;
37  void write(const std::string& path, const DataSet& data_set, bool overwrite) const;
46  const std::string getFormatName() const
47  {
48  return "Darwin .don";
49  }
50  const std::string getFormatDescription() const
51  {
52  return "Darwin .don file store data identifying individuals.";
53  }
57 };
58 } // end of namespace bpp;
59 
60 #endif // _DARWIN_DON_H_
Partial implementation of the DataSet Output interface.
The Darwin .don output format for popgenlib.
Definition: DarwinDon.h:25
const std::string getFormatDescription() const
Definition: DarwinDon.h:50
void write(std::ostream &os, const DataSet &data_set) const
Write a DataSet on ostream.
Definition: DarwinDon.cpp:16
const std::string getFormatName() const
Definition: DarwinDon.h:46
The DataSet class.
Definition: DataSet.h:37