hydrobricks
Loading...
Searching...
No Matches
ParameterVariableDates Class Reference
Inheritance diagram for ParameterVariableDates:
ParameterVariable Parameter

Public Member Functions

 ParameterVariableDates (const string &name)
 
bool SetTimeAndValues (const vecDouble &time, const vecFloat &values)
 
bool UpdateParameter (double timeReference)
 
- Public Member Functions inherited from ParameterVariable
 ParameterVariable (const string &name)
 
- Public Member Functions inherited from Parameter
 Parameter (const string &name, float val=NAN_F)
 
bool IsLinked () const
 
void SetAsLinked (bool value=true)
 
string GetName () const
 
void SetName (const string &name)
 
float GetValue () const
 
float * GetValuePointer ()
 
void SetValue (float val)
 

Protected Attributes

vecFloat m_values
 
vecDouble m_reference
 
- Protected Attributes inherited from ParameterVariable
vecFloat m_values
 
- Protected Attributes inherited from Parameter
bool m_linked
 
string m_name
 
float m_value
 

Member Function Documentation

◆ SetTimeAndValues()

bool ParameterVariableDates::SetTimeAndValues ( const vecDouble & time,
const vecFloat & values )

Set the values of the parameter for a range of dates.

Parameters
timevector of dates
valuesvalues for each date
Returns
true if the values were set successfully, false otherwise

◆ UpdateParameter()

bool ParameterVariableDates::UpdateParameter ( double timeReference)

Update the parameter value for a specific date.

Parameters
timeReferencedate to update
Returns
true if the parameter was updated successfully, false otherwise

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