All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TimeSeriesDataSetInfo.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 TimeSeriesDataSetInfo.cpp
22 
23  \brief This file contains a class called TimeSeriesDataSetInfo
24 */
25 
26 //TerraLib
27 #include "../../../dataaccess/datasource/DataSourceInfo.h"
28 #include "../../../common/StringUtils.h"
29 
30 //ST
31 #include "TimeSeriesDataSetInfo.h"
32 
34  const std::string& dsName, int tPropIdx, int vPropIdx, int gPropIdx,
35  int idPropIdx, const std::string& id)
36  : m_obsDsInfo(dsinfo, dsName, tPropIdx, vPropIdx, gPropIdx),
37  m_vlPropIdxs(1,vPropIdx),
38  m_idPropIdx(idPropIdx),
39  m_id(id)
40 {
41 }
42 
44  int tPropIdx, const std::vector<int>& vPropIdxs, int gPropIdx,
45  int idPropIdx, const std::string& id)
46  : m_obsDsInfo(dsinfo, dsName, std::vector<int>(1,tPropIdx), vPropIdxs, gPropIdx),
47  m_vlPropIdxs(vPropIdxs),
48  m_idPropIdx(idPropIdx),
49  m_id(id)
50 {
51 }
52 
53 
55  int idPropIdx, const std::string& id)
56  : m_obsDsInfo(info),
57  m_vlPropIdxs(info.getObsPropIdxs()),
58  m_idPropIdx(idPropIdx),
59  m_id(id)
60 {
61 }
62 
65 {
66  return m_obsDsInfo;
67 }
68 
71 {
72  return m_obsDsInfo.getDataSourceInfo();
73 }
74 
75 const std::vector<int>&
77 {
78  return m_obsDsInfo.getTimePropIdxs();
79 }
80 
81 const std::vector<int>&
83 {
84  return m_vlPropIdxs;
85 }
86 
88 {
89  return m_obsDsInfo.getGeomPropIdx();
90 }
91 
93 {
94  return m_idPropIdx;
95 }
96 
98 {
99  return m_id;
100 }
101 
103 {
104 }
105 
106 
int getGeomPropIdx() const
It returns the index of the DataSet property that contains the location of the time series...
A class that contains infos about a DataSet that contains observations.
This file contains a class called TimeSeriesDataSetInfo.
A class that represents a data source component.
std::string getId() const
It returns the time series id that this DataSet contains.
const std::vector< int > & getTimePropIdxs() const
It returns the indexes of the DataSet properties that contains the times associated to the time serie...
TimeSeriesDataSetInfo(const te::da::DataSourceInfo &dsinfo, const std::string &dsName, int tPropIdx, int vPropIdx, int gPropIdx, int idPropIdx, const std::string &id)
Constructor.
const ObservationDataSetInfo & getObservationDataSetInfo() const
It returns information about the DataSet that contians the time series observations.
virtual ~TimeSeriesDataSetInfo()
Virtual destructor.
const std::vector< int > & getValuePropIdxs() const
It returns the indexes of the DataSet properties that contains the values associated to the time seri...
const te::da::DataSourceInfo & getDataSourceInfo() const
It returns information about the DataSource from which the DataSet comes.
int getIdPropIdx() const
It returns the index of the DataSet property that contains the identification of each time series...