bpp-popgen3  3.0.0
Genepop.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 _GENEPOP_H_
6 #define _GENEPOP_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 "../AbstractIDataSet.h"
15 #include "../../../BasicAlleleInfo.h"
16 
17 namespace bpp
18 {
24 class Genepop :
25  public AbstractIDataSet
26 {
27 public:
28  // Constructor and destructor
29  Genepop();
30  ~Genepop();
31 
32 public:
37  void read(std::istream& is, DataSet& data_set);
38  void read(const std::string& path, DataSet& data_set);
39  DataSet* read(std::istream& is);
40  DataSet* read(const std::string& path);
49  const std::string getFormatName() const
50  {
51  return "Genepop ver 3.4";
52  }
53 
54  const std::string getFormatDescription() const
55  {
56  return "Genepop is a software for populations genetic for DOS operating system";
57  }
61 };
62 } // end of namespace bpp;
63 
64 #endif // _GENEPOP_H_
Partial implementation of the DataSet Input interface.
The DataSet class.
Definition: DataSet.h:37
The Genepop input format for popgenlib.
Definition: Genepop.h:26
const std::string getFormatDescription() const
Definition: Genepop.h:54
void read(std::istream &is, DataSet &data_set)
Read a DataSet on istream.
Definition: Genepop.cpp:14
const std::string getFormatName() const
Definition: Genepop.h:49