bpp-popgen  3.0.0
bpp::Genepop Class Reference

The Genepop input format for popgenlib. More...

#include <Bpp/PopGen/DataSet/Io/Genepop/Genepop.h>

+ Inheritance diagram for bpp::Genepop:
+ Collaboration diagram for bpp::Genepop:

Public Member Functions

 Genepop ()
 
 ~Genepop ()
 
The IDataSet interface.
void read (std::istream &is, DataSet &data_set)
 Read a DataSet on istream. More...
 
void read (const std::string &path, DataSet &data_set)
 Read a DataSet from a text file. More...
 
DataSetread (std::istream &is)
 Read istream and return a DataSet. More...
 
DataSetread (const std::string &path)
 Read a text file and return a DataSet. More...
 
The IOFormat interface
const std::string getFormatName () const
 
const std::string getFormatDescription () const
 

Private Member Functions

The IOFormat interface.
const std::string getDataType () const
 

Detailed Description

The Genepop input format for popgenlib.

Author
Sylvain Gaillard

Definition at line 59 of file Genepop.h.

Constructor & Destructor Documentation

◆ Genepop()

Genepop::Genepop ( )

Definition at line 45 of file Genepop.cpp.

◆ ~Genepop()

Genepop::~Genepop ( )

Definition at line 47 of file Genepop.cpp.

Member Function Documentation

◆ getDataType()

const std::string bpp::IODataSet::getDataType ( ) const
inlineprivatevirtualinherited

Implements bpp::IOFormat.

Definition at line 67 of file IODataSet.h.

◆ getFormatDescription()

const std::string bpp::Genepop::getFormatDescription ( ) const
inlinevirtual

Implements bpp::IOFormat.

Definition at line 89 of file Genepop.h.

◆ getFormatName()

const std::string bpp::Genepop::getFormatName ( ) const
inlinevirtual

Implements bpp::IOFormat.

Definition at line 84 of file Genepop.h.

◆ read() [1/4]

DataSet * Genepop::read ( const std::string &  path)
virtual

Read a text file and return a DataSet.

Reimplemented from bpp::AbstractIDataSet.

Definition at line 204 of file Genepop.cpp.

References bpp::AbstractIDataSet::read().

◆ read() [2/4]

void Genepop::read ( const std::string &  path,
DataSet data_set 
)
virtual

Read a DataSet from a text file.

Reimplemented from bpp::AbstractIDataSet.

Definition at line 194 of file Genepop.cpp.

References bpp::AbstractIDataSet::read().

◆ read() [3/4]

DataSet * Genepop::read ( std::istream &  is)
virtual

Read istream and return a DataSet.

Reimplemented from bpp::AbstractIDataSet.

Definition at line 199 of file Genepop.cpp.

References bpp::AbstractIDataSet::read().

◆ read() [4/4]


The documentation for this class was generated from the following files: