bpp-popgen3  3.0.0
Genetix.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 _GENETIX_H_
6 #define _GENETIX_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 Genetix :
25  public AbstractIDataSet
26 {
27 public:
28  // Constructor and destructor
29  Genetix();
30  ~Genetix();
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 "Genetix ver 4.05";
52  }
53  const std::string getFormatDescription() const
54  {
55  return "Genetix is a software for populations genetic for Windows(tm)";
56  }
60 };
61 } // end of namespace bpp;
62 
63 #endif // _GENETIX_H_
Partial implementation of the DataSet Input interface.
The DataSet class.
Definition: DataSet.h:37
The Genetix input format for popgenlib.
Definition: Genetix.h:26
void read(std::istream &is, DataSet &data_set)
Read a DataSet on istream.
Definition: Genetix.cpp:14
const std::string getFormatDescription() const
Definition: Genetix.h:53
const std::string getFormatName() const
Definition: Genetix.h:49