bpp-popgen3
3.0.0
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
Typedefs
Classes
Class List
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
y
~
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
w
~
Variables
a
b
c
d
f
g
h
i
l
m
n
p
s
t
u
w
y
Files
File List
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Friends
Pages
AbstractIDataSet.cpp
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: The Bio++ Development Group
2
//
3
// SPDX-License-Identifier: CECILL-2.1
4
5
#include "
AbstractIDataSet.h
"
6
7
using namespace
bpp
;
8
9
// From STL
10
#include <fstream>
11
12
using namespace
std;
13
14
AbstractIDataSet::~AbstractIDataSet
() {}
15
16
void
AbstractIDataSet::read
(
const
std::string& path,
DataSet
& data_set)
17
{
18
ifstream input(path.c_str(), ios::in);
19
read(input, data_set);
20
input.close();
21
}
22
23
DataSet
*
AbstractIDataSet::read
(std::istream& is)
24
{
25
DataSet
* data_set =
new
DataSet
();
26
read(is, *data_set);
27
return
data_set;
28
}
29
30
DataSet
*
AbstractIDataSet::read
(
const
std::string& path)
31
{
32
DataSet
* data_set =
new
DataSet
();
33
read(path, *data_set);
34
return
data_set;
35
}
AbstractIDataSet.h
bpp::AbstractIDataSet::read
virtual void read(std::istream &is, DataSet &data_set)=0
Read a DataSet on istream.
bpp::AbstractIDataSet::~AbstractIDataSet
virtual ~AbstractIDataSet()
Definition:
AbstractIDataSet.cpp:14
bpp::DataSet
The DataSet class.
Definition:
DataSet.h:37
bpp
Bpp
PopGen
DataSet
Io
AbstractIDataSet.cpp
Generated on Sun Jul 21 2024 08:40:35 for bpp-popgen3 by
1.9.1