26 #ifndef __TERRALIB_ST_INTERNAL_TIMESERIESOBSERVATION_H 
   27 #define __TERRALIB_ST_INTERNAL_TIMESERIESOBSERVATION_H 
   30 #include "../../../datatype/DateTime.h" 
   31 #include "../../../datatype/AbstractData.h" 
   34 #include "../../Config.h" 
   40 #include <boost/shared_ptr.hpp> 
   41 #include <boost/multi_index_container.hpp> 
   42 #include <boost/multi_index/ordered_index.hpp> 
   43 #include <boost/multi_index/identity.hpp> 
   44 #include <boost/multi_index/mem_fun.hpp> 
   47 namespace te { 
namespace dt { 
class AbstractData; 
class DateTime; } }
 
  120     typedef boost::multi_index_container<
 
  122             boost::multi_index::indexed_by<
 
  124                 boost::multi_index::ordered_unique<
 
  125                       boost::multi_index::identity<TimeSeriesObservation> >, 
 
  128                 boost::multi_index::ordered_non_unique< 
 
  129                       boost::multi_index::const_mem_fun<TimeSeriesObservation, double, &TimeSeriesObservation::getDouble> >,
 
  132                 boost::multi_index::ordered_non_unique< 
 
  133                       boost::multi_index::const_mem_fun<TimeSeriesObservation, std::string, &TimeSeriesObservation::getString> >
 
  144 #endif  // __TERRALIB_ST_INTERNAL_TIMESERIESOBSERVATION_H 
boost::multi_index_container< TimeSeriesObservation, boost::multi_index::indexed_by< boost::multi_index::ordered_unique< boost::multi_index::identity< TimeSeriesObservation > >, boost::multi_index::ordered_non_unique< boost::multi_index::const_mem_fun< TimeSeriesObservation, double,&TimeSeriesObservation::getDouble > >, boost::multi_index::ordered_non_unique< boost::multi_index::const_mem_fun< TimeSeriesObservation, std::string,&TimeSeriesObservation::getString > > > > TimeSeriesObservationSet
 
double getDouble() const 
It returns the value as a double. 
 
boost::shared_ptr< DateTime > DateTimeShrPtr
 
bool operator<(const TimeSeriesObservation &other) const 
Operator <. 
 
std::string getString() const 
It returns the value as a string. 
 
te::dt::DateTimeShrPtr m_time
 
te::dt::DateTime * getTime() const 
It returns the date time. 
 
TimeSeriesObservationSet::nth_index< 0 >::type TimeSeriesByTime
 
TimeSeriesObservationSet::nth_index< 1 >::type TimeSeriesByValue
 
te::dt::AbstractData * getValue() const 
It returns the value. 
 
boost::shared_ptr< AbstractData > AbstractDataShrPtr
 
void setTime(te::dt::DateTime *t)
It sets the date time. 
 
A base class for values that can be retrieved from the data access module. 
 
~TimeSeriesObservation()
Destructor. 
 
TimeSeriesObservation(te::dt::DateTime *t, te::dt::AbstractData *v)
Constructor. 
 
int getInt() const 
It returns the value as a integer. 
 
A class to represent an observation (time and value) of a time series. 
 
te::dt::AbstractDataShrPtr m_value