46 bool saveStandCarbon(
const int stand_id, QList<int> ru_ids,
bool rid_mode);
50 bool openDatabase(
const QString &file_name,
const bool read);
51 bool openStandDatabase(
const QString &file_name,
bool read);
54 void saveSoilRU(QList<int> stand_ids,
bool ridmode);
57 void saveSnagRU(QList<int> stand_ids,
bool ridmode);
58 void saveSnagCore(
Snag *s, QSqlQuery &q);
61 void loadSoil(QSqlDatabase db=QSqlDatabase());
62 void loadSnags(QSqlDatabase db=QSqlDatabase());
64 void loadSaplingsOld();
65 QHash<int, ResourceUnit* > mRUHash;
ResourceUnit is the spatial unit that encapsulates a forest stand and links to several environmental ...
Definition: resourceunit.h:49
Snag deals with carbon / nitrogen fluxes from the forest until the reach soil pools.
Definition: snag.h:79
way to save/load the current state of the model to a database.
Definition: snapshot.h:35
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 ...
Definition: snapshot.cpp:363
bool loadSnapshot(const QString &file_name)
Definition: snapshot.cpp:185
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 'f...
Definition: snapshot.cpp:255
bool saveStandCarbon(const int stand_id, QList< int > ru_ids, bool rid_mode)
save the carbon/snag pools of a set of resource units
Definition: snapshot.cpp:477
bool createSnapshot(const QString &file_name)
Definition: snapshot.cpp:151
bool loadStandCarbon()
load the carbon/snags pools from the current (stand) snapshot
Definition: snapshot.cpp:489
Snapshot()
Definition: snapshot.cpp:109
implementation of the ICBM/2N soil carbon and nitrogen dynamics model.
Definition: soil.h:29