WSL/SLF GitLab Repository

Commit da89437e authored by Thomas Egger's avatar Thomas Egger
Browse files

The equality operator of MeteoData needed to be extended to all possible meteo parameters

parent be2d469c
......@@ -138,7 +138,7 @@ void MeteoData::addParameter(const std::string& i_paramname)
unsigned int MeteoData::getNrOfParameters()
unsigned int MeteoData::getNrOfParameters() const
return nrOfAllParameters;
......@@ -220,7 +220,7 @@ bool MeteoData::operator==(const MeteoData& in) const
//An object is equal if the date is equal and all meteo parameters are equal
bool eval = (;
for (unsigned int ii=0; ii<MeteoData::nrOfParameters; ii++){
for (unsigned int ii=0; ii<in.getNrOfParameters(); ii++){
eval &= (param(ii) == in.param(ii));
......@@ -133,7 +133,7 @@ class MeteoData {
double hs; ///<Snow height in m
double p; ///<Atmospheric pressure in Pa
unsigned int getNrOfParameters();
unsigned int getNrOfParameters() const;
static std::map<unsigned int, std::string> static_meteoparamname; ///<Associate a name with meteo parameters in Parameters
static const bool __init; ///<helper variable to enable the init of static collection data
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment