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

Public Member Functions

 HydroUnitProperty (string name, double value, string unit="")
 
 HydroUnitProperty (string name, string valueString, string unit="")
 
double GetValue (const string &unit="") const
 
string GetValueString () const
 
string GetName ()
 

Member Function Documentation

◆ GetName()

string HydroUnitProperty::GetName ( )
inline

Get the name of the property.

Returns
The name of the property.

◆ GetValue()

double HydroUnitProperty::GetValue ( const string & unit = "") const

Get the value of the property.

Parameters
unitThe unit to convert the value to. If empty, the original unit is used.
Returns
The value of the property.

◆ GetValueString()

string HydroUnitProperty::GetValueString ( ) const

Get the value of the property as a string.

Returns
The value of the property as a string.

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