31 : m_time(t), m_value(v)
52 return atof(m_value->toString().c_str());
57 return atoi(m_value->toString().c_str());
62 return m_value->toString();
67 return m_time->operator<(*other.
getTime());
This file contains a class to represent a time series observation.
std::string getString() const
It returns the value as a string.
A class to represent an observation (time and value) of a time series.
TimeSeriesObservation(te::dt::DateTime *t, te::dt::AbstractData *v)
Constructor.
double getDouble() const
It returns the value as a double.
int getInt() const
It returns the value as a integer.
~TimeSeriesObservation()
Destructor.
te::dt::AbstractData * getValue() const
It returns the value.
A base class for values that can be retrieved from the data access module.
bool operator<(const TimeSeriesObservation &other) const
Operator <.
void setTime(te::dt::DateTime *t)
It sets the date time.
te::dt::DateTime * getTime() const
It returns the date time.