27 #include "../../../datatype/AbstractData.h" 28 #include "../../../datatype/DateTime.h" 29 #include "../../../datatype/TimeInstant.h" 30 #include "../../../datatype/TimePeriod.h" 31 #include "../../../geometry/Geometry.h" 56 const boost::ptr_vector<te::dt::AbstractData>& obsValues)
66 const boost::ptr_vector<te::dt::AbstractData>& obsValues)
te::dt::DateTime * getTime() const
It returns the phenomenon time.
const Observation & operator=(const Observation &rhs)
Assignment operator.
std::unique_ptr< te::dt::DateTime > m_phTime
The phenomenon time.
A class to represent an observation.
void setValidTime(te::dt::DateTimePeriod *valTime)
It sets the valid time.
std::unique_ptr< te::dt::DateTimeInstant > m_resultTime
The result time.
te::dt::DateTimeInstant * getResultTime() const
It returns the result time.
Observation()
It constructs an empty Observation.
void setTime(te::dt::DateTime *phTime)
It sets the phenomenon time.
boost::ptr_vector< te::dt::AbstractData > & getObservedValues()
It returns the observed values.
boost::ptr_vector< te::dt::AbstractData > m_observedValues
The observed values.
A base class for values that can be retrieved from the data access module.
std::unique_ptr< te::gm::Geometry > m_geometry
The observation location.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
std::unique_ptr< te::dt::DateTimePeriod > m_validTime
The valid time.
te::gm::Geometry * getGeometry() const
It returns the observation location or region.
te::dt::DateTimePeriod * getValidTime() const
It returns the valid time.
Observation * clone() const
It returns a clone of this object.
An abstract class to represent a period of date and time.
void setValues(const boost::ptr_vector< te::dt::AbstractData > &values)
It sets the observed values.
void addValue(te::dt::AbstractData *value)
It adds an observed value.
virtual ~Observation()
Virtual destructor.
void setGeometry(te::gm::Geometry *geom)
It sets the observation location or region.
void setResultTime(te::dt::DateTimeInstant *resTime)
It sets the result time.
const te::dt::AbstractData * getObservedValue(int idx=0) const
It returns the idx-th observed value.
An abstract class to represent an instant of date and time.