27 #include "../../../datatype/DateTime.h"
28 #include "../../../datatype/AbstractData.h"
54 return m_it == rhs.
m_it;
59 return m_it != rhs.
m_it;
95 return m_it->getTime();
100 return m_it->getValue();
105 return m_it->getDouble();
110 return m_it->getInt();
115 return m_it->getString();
double getDouble() const
It returns the attribute value as a double pointed by the internal cursor.
bool operator==(const TimeSeriesIterator &rhs)
Operator ==.
TimeSeriesIterator()
Empty constructor.
std::string getString() const
It returns the attribute value as a string pointed by the internal cursor.
A class to traverse the observations of a TimeSeries.
virtual ~TimeSeriesIterator()
Virtual destructor.
TimeSeriesObservationSet::const_iterator m_it
The internal cursor.
te::dt::DateTime * getTime() const
It returns the datetime pointed by the internal cursor.
const TimeSeriesIterator & operator=(const TimeSeriesIterator &rhs)
Assignment operator.
A class to represent an observation (time and value) of a time series.
int getInt() const
It returns the attribute value as an integer pointed by the internal cursor.
TimeSeriesIterator & operator++()
Prefix operator ++.
A base class for values that can be retrieved from the data access module.
TimeSeriesIterator & operator--()
Prefix operator –.
TimeSeriesObservation operator*() const
Prefix operator *.
bool operator!=(const TimeSeriesIterator &rhs)
Operator !=.
te::dt::AbstractData * getValue() const
It returns the attribute value pointed by the internal cursor.
This file contains a time series iterator.