◆ AddHydroUnit()
void SettingsBasin::AddHydroUnit |
( |
int | id, |
|
|
double | area ) |
Add a new hydro unit.
- Parameters
-
id | ID of the hydro unit. |
area | area of the hydro unit. |
◆ AddHydroUnitPropertyDouble()
void SettingsBasin::AddHydroUnitPropertyDouble |
( |
const string & | name, |
|
|
double | value, |
|
|
const string & | unit = "" ) |
Add a numeric property to the selected hydro unit.
- Parameters
-
name | name of the property. |
value | value of the property. |
unit | unit of the property. |
◆ AddHydroUnitPropertyString()
void SettingsBasin::AddHydroUnitPropertyString |
( |
const string & | name, |
|
|
const string & | value ) |
Add a string property to the selected hydro unit.
- Parameters
-
name | name of the property. |
value | value of the property. |
◆ AddLandCover()
void SettingsBasin::AddLandCover |
( |
const string & | name, |
|
|
const string & | type = "", |
|
|
double | fraction = 1.0 ) |
Add a new land cover to the selected hydro unit.
- Parameters
-
name | name of the land cover. |
type | type of the land cover. |
fraction | fraction of the land cover. |
◆ Clear()
void SettingsBasin::Clear |
( |
| ) |
|
◆ GetHydroUnitSettings()
Get hydro unit settings.
- Parameters
-
index | index of the hydro unit. |
- Returns
- pointer to the selected hydro unit.
◆ GetHydroUnitsNb()
int SettingsBasin::GetHydroUnitsNb |
( |
| ) |
const |
|
inline |
Get the number of hydro units.
- Returns
- number of hydro units.
◆ GetLandCoverSettings()
Get land cover settings for the selected hydro unit.
- Parameters
-
index | index of the land cover. |
- Returns
- pointer to the selected land cover.
◆ GetLandCoversNb()
int SettingsBasin::GetLandCoversNb |
( |
| ) |
const |
|
inline |
Get the number of land covers for the selected hydro unit.
- Returns
- number of land covers.
◆ GetSurfaceComponentSettings()
Get surface component settings for the selected hydro unit.
- Parameters
-
index | index of the surface component. |
- Returns
- pointer to the selected surface component.
◆ GetSurfaceComponentsNb()
int SettingsBasin::GetSurfaceComponentsNb |
( |
| ) |
const |
|
inline |
Get the number of surface components for the selected hydro unit.
- Returns
- number of surface components.
◆ GetTotalArea()
double SettingsBasin::GetTotalArea |
( |
| ) |
const |
Get the total area of the sub basin (all hydro units).
- Returns
- total area of the sub basin.
◆ Parse()
bool SettingsBasin::Parse |
( |
const string & | path | ) |
|
Parse a NetCDF file to get the hydro unit settings.
◆ SelectUnit()
void SettingsBasin::SelectUnit |
( |
int | index | ) |
|
Select a hydro unit.
- Parameters
-
index | index of the hydro unit to select. |
The documentation for this class was generated from the following files:
- /github/workspace/core/src/base/SettingsBasin.h
- /github/workspace/core/src/base/SettingsBasin.cpp