iLand
|
way to save/load the current state of the model to a database. More...
#include <snapshot.h>
Public Member Functions | |
Snapshot () | |
bool | createSnapshot (const QString &file_name) |
bool | loadSnapshot (const QString &file_name) |
bool | saveStandSnapshot (const int stand_id, const MapGrid *stand_grid, const QString &file_name) |
save the trees/saplings from a single stand (given by 'stand_id' and 'stand_grid' to a database in 'file_name' More... | |
bool | loadStandSnapshot (const int stand_id, const MapGrid *stand_grid, const QString &file_name) |
load the trees/saplings from a single stand (given by 'stand_id' and 'stand_grid' from a database in 'file_name' More... | |
bool | saveStandCarbon (const int stand_id, QList< int > ru_ids, bool rid_mode) |
save the carbon/snag pools of a set of resource units More... | |
bool | loadStandCarbon () |
load the carbon/snags pools from the current (stand) snapshot More... | |
way to save/load the current state of the model to a database.
A snapshot contains trees, saplings, snags and soil (carbon/nitrogen pools), i.e. a snapshot allows to replicate all state variables of a landscape system.
Snapshot::Snapshot | ( | ) |
bool Snapshot::createSnapshot | ( | const QString & | file_name | ) |
bool Snapshot::loadSnapshot | ( | const QString & | file_name | ) |
bool Snapshot::loadStandCarbon | ( | ) |
load the carbon/snags pools from the current (stand) snapshot
bool Snapshot::loadStandSnapshot | ( | const int | stand_id, |
const MapGrid * | stand_grid, | ||
const QString & | file_name | ||
) |
load the trees/saplings from a single stand (given by 'stand_id' and 'stand_grid' from a database in 'file_name'
bool Snapshot::saveStandCarbon | ( | const int | stand_id, |
QList< int > | ru_ids, | ||
bool | rid_mode | ||
) |
save the carbon/snag pools of a set of resource units
bool Snapshot::saveStandSnapshot | ( | const int | stand_id, |
const MapGrid * | stand_grid, | ||
const QString & | file_name | ||
) |
save the trees/saplings from a single stand (given by 'stand_id' and 'stand_grid' to a database in 'file_name'