26 #ifndef BINARYDATALOADER_H
27 #define BINARYDATALOADER_H
A class to load a whole population from a binary data file.
Definition: binarydataloader.h:39
SimBuilder * getSim() const
Definition: binarydataloader.h:80
Metapop * extractPop(string &filename, unsigned int generation, SimBuilder *sim, Metapop *popPtr)
Definition: binarydataloader.cc:161
unsigned int _generation_in_file
Definition: binarydataloader.h:61
BinaryStorageBuffer _buff
The data countainer into which the data will be copied.
Definition: binarydataloader.h:45
SimBuilder * _current_sim
Pointer to the current (calling) simulation object.
Definition: binarydataloader.h:42
BinaryFileParser _pExtractor
Definition: binarydataloader.h:63
std::string _filename
Definition: binarydataloader.h:55
Metapop * _in_pop
Pointer to the a newly created Metapop object used to retrieve the data.
Definition: binarydataloader.h:48
void clear()
Definition: binarydataloader.cc:51
off_t extractOffsetTable(int FD)
Definition: binarydataloader.cc:61
unsigned int _gen
Definition: binarydataloader.h:53
void setGeneration(unsigned int gen)
Definition: binarydataloader.h:84
Metapop * getPop() const
Definition: binarydataloader.h:78
off_t _offsetDataStart
Definition: binarydataloader.h:59
~BinaryDataLoader()
Definition: binarydataloader.cc:45
unsigned int getGeneration() const
Definition: binarydataloader.h:82
BinaryDataLoader()
Definition: binarydataloader.h:67
SimBuilder * _new_sim
Pointer to a new simulation builder to load the new simulation.
Definition: binarydataloader.h:51
const BinaryStorageBuffer * getBuffer() const
Definition: binarydataloader.h:86
Retrieves simulation parameters from a binary data file.
Definition: fileparser.h:49
A class to store any kind of data in a char buffer before unloading it in a binary data file.
Definition: binarystoragebuffer.h:42
Provides methods to build the user's selected set of life cycle events and traits from the parameters...
Definition: basicsimulation.h:166