hydrobricks
Loading...
Searching...
No Matches
SettingsBasin Class Reference
Inheritance diagram for SettingsBasin:

Public Member Functions

void AddHydroUnit (int id, double area)
 
void AddLandCover (const string &name, const string &type="", double fraction=1.0)
 
void AddHydroUnitPropertyDouble (const string &name, double value, const string &unit="")
 
void AddHydroUnitPropertyString (const string &name, const string &value)
 
void Clear ()
 
void SelectUnit (int index)
 
bool Parse (const string &path)
 
HydroUnitSettings GetHydroUnitSettings (int index) const
 
LandCoverSettings GetLandCoverSettings (int index) const
 
SurfaceComponentSettings GetSurfaceComponentSettings (int index) const
 
int GetHydroUnitsNb () const
 
int GetLandCoversNb () const
 
int GetSurfaceComponentsNb () const
 
double GetTotalArea () const
 

Member Function Documentation

◆ AddHydroUnit()

void SettingsBasin::AddHydroUnit ( int id,
double area )

Add a new hydro unit.

Parameters
idID of the hydro unit.
areaarea 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
namename of the property.
valuevalue of the property.
unitunit of the property.

◆ AddHydroUnitPropertyString()

void SettingsBasin::AddHydroUnitPropertyString ( const string & name,
const string & value )

Add a string property to the selected hydro unit.

Parameters
namename of the property.
valuevalue 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
namename of the land cover.
typetype of the land cover.
fractionfraction of the land cover.

◆ Clear()

void SettingsBasin::Clear ( )

Clear all hydro units.

◆ GetHydroUnitSettings()

HydroUnitSettings SettingsBasin::GetHydroUnitSettings ( int index) const
inline

Get hydro unit settings.

Parameters
indexindex 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()

LandCoverSettings SettingsBasin::GetLandCoverSettings ( int index) const
inline

Get land cover settings for the selected hydro unit.

Parameters
indexindex 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()

SurfaceComponentSettings SettingsBasin::GetSurfaceComponentSettings ( int index) const
inline

Get surface component settings for the selected hydro unit.

Parameters
indexindex 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
indexindex of the hydro unit to select.

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