iLand
Public Member Functions | List of all members
Snapshot Class Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Snapshot()

Snapshot::Snapshot ( )

Member Function Documentation

◆ createSnapshot()

bool Snapshot::createSnapshot ( const QString &  file_name)

◆ loadSnapshot()

bool Snapshot::loadSnapshot ( const QString &  file_name)

◆ loadStandCarbon()

bool Snapshot::loadStandCarbon ( )

load the carbon/snags pools from the current (stand) snapshot

◆ loadStandSnapshot()

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'

◆ saveStandCarbon()

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

◆ saveStandSnapshot()

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'


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