All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PointCoverageDataSetInfo.cpp
Go to the documentation of this file.
1 /* Copyright (C) 2001-2009 National Institute For Space Research (INPE) - Brazil.
2 
3  This file is part of the TerraLib - a Framework for building GIS enabled applications.
4 
5  TerraLib is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License,
8  or (at your option) any later version.
9 
10  TerraLib is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with TerraLib. See COPYING. If not, write to
17  TerraLib Team at <terralib-team@terralib.org>.
18 */
19 
20 /*!
21  \file PointCoverageDataSetInfo.cpp
22 
23  \brief This file contains a class called PointCoverageDataSetInfo
24 */
25 //TerraLib
26 #include "../../../datatype/DateTime.h"
27 
28 //ST
30 
32  const std::string& dsName, int tPropIdx, int ptPropIdx, int vlPropIdx, te::dt::DateTime* time)
33  : m_obsDsInfo(dsinfo, dsName, tPropIdx, vlPropIdx, ptPropIdx),
34  m_vlPropIdx(1,vlPropIdx),
35  m_time(time)
36 {
37 }
38 
40  const std::string& dsName, int ptPropIdx, int vlPropIdx, te::dt::DateTime* time)
41  : m_obsDsInfo(dsinfo, dsName, -1, vlPropIdx, ptPropIdx),
42  m_vlPropIdx(1,vlPropIdx),
43  m_time(time)
44 {
45 }
46 
48  const std::vector<int>& tPropIdx, int ptPropIdx, const std::vector<int>& vlPropIdx,
49  te::dt::DateTime* time)
50  : m_obsDsInfo(dsinfo, dsName, tPropIdx, vlPropIdx, ptPropIdx),
51  m_vlPropIdx(vlPropIdx),
52  m_time(time)
53 {
54 }
55 
57  int ptPropIdx, const std::vector<int>& vlPropIdx, te::dt::DateTime* time)
58  : m_obsDsInfo(dsinfo, dsName, std::vector<int>(1,-1), vlPropIdx, ptPropIdx),
59  m_vlPropIdx(vlPropIdx),
60  m_time(time)
61 {
62 }
63 
65  const std::vector<int>& vlPropIdxs, te::dt::DateTime* time)
66  : m_obsDsInfo(info),
67  m_vlPropIdx(vlPropIdxs),
68  m_time(time)
69 {
70 }
71 
73 {
75 }
76 
78 {
79  return m_obsDsInfo;
80 }
81 
83 {
84  return m_obsDsInfo.getDataSourceInfo();
85 }
86 
88 {
89  return m_obsDsInfo.getTimePropIdxs();
90 }
91 
93 {
94  return m_obsDsInfo.getGeomPropIdx();
95 }
96 
98 {
99  return m_vlPropIdx;
100 }
101 
102 std::auto_ptr<te::dt::DateTime> te::st::PointCoverageDataSetInfo::getTime() const
103 {
104  return std::auto_ptr<te::dt::DateTime>(static_cast<te::dt::DateTime*>(m_time->clone()));
105 }
106 
108 {
109 }
110 
111 
112 
const std::vector< int > & getTimePropIdxs() const
It returns the indexes of the DataSet properties that contains the times associated to the coverage...
const ObservationDataSetInfo & getObservationDataSetInfo() const
It returns information about the DataSet that contains the coverage observations. ...
const std::vector< int > & getValuePropIdxs() const
It returns the property indexes that contains the values of the coverage.
int getPointPropIdx() const
It returns the property index that contains the points of the coverage.
A class that contains infos about a DataSet that contains observations.
PointCoverageDataSetInfo(const te::da::DataSourceInfo &dsinfo, const std::string &dsName, int tPropIdx, int ptPropIdx, int vlPropIdx, te::dt::DateTime *time)
Constructor.
A class that represents a data source component.
te::st::CoverageType getCoverageType() const
It returns the type of the coverage.
std::auto_ptr< te::dt::DateTime > getTime() const
It returns the date and time associated to the entire point coverage.
virtual ~PointCoverageDataSetInfo()
Virtual destructor.
const te::da::DataSourceInfo & getDataSourceInfo() const
It returns information about the DataSource from which the DataSet comes.
CoverageType
An enum for the types of coverage.
Definition: Enums.h:43
This file contains a class called PointCoverageDataSetInfo.