All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TrajectoryDataSetInfo.h
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 TrajectoryDataSetInfo.h
22 
23  \brief This file contains a class called TrajectoryDataSetInfo
24 */
25 
26 #ifndef __TERRALIB_ST_INTERNAL_TRAJECTORYDATASETINFO_H
27 #define __TERRALIB_ST_INTERNAL_TRAJECTORYDATASETINFO_H
28 
29 //ST
30 #include "../../Config.h"
31 #include "../observation/ObservationDataSetInfo.h"
32 
33 //STL
34 #include <vector>
35 
36 namespace te { namespace da { class DataSourceInfo; } }
37 
38 namespace te
39 {
40  namespace st
41  {
42 
43  /*!
44  \class TrajectoryDataSetInfo
45 
46  \brief A class that contains infos about a DataSet that contains
47  observations of one or more trajectories.
48 
49  This class contains information about a DataSet that
50  contains observations of one or more trajectories.
51  This information includes:
52  (1) the DataSource which it is from
53  (2) the DataSet name
54  (3) the DataSet properties that contains the phenomenon time,
55  the result time, the observed geometries and the identity of each trajectory.
56 
57  \sa ObservationDataSetInfo
58  */
60  {
61  public:
62 
63  /*!
64  \brief Constructor.
65 
66  \param dsinfo Infos about the DataSource.
67  \param dsName The DataSet name.
68  \param tPropIdx The property index that contains the times associated to the trajectory.
69  \param gPropIdx The property index that contains the geometries associated to the trajectory.
70  \param idPropIdx The property index that contains the identification of each trajectory.
71  \param id The identification of the trajectory hat this DataSet contains.
72  */
73  TrajectoryDataSetInfo(const te::da::DataSourceInfo& dsinfo, const std::string& dsName,
74  int tPropIdx, int gPropIdx, int idPropIdx, const std::string& id);
75 
76  /*!
77  \brief Constructor.
78 
79  \param info Infos about the DataSource and DataSet that contains the trajectory observations
80  \param idPropIdx The property index that contains the identification of each trajectory.
81  \param id The identification of the trajectory hat this DataSet contains.
82  */
83  TrajectoryDataSetInfo(const ObservationDataSetInfo& info, int idPropIdx, const std::string& id);
84 
85  /*!
86  \brief It returns information about the DataSet that contians the trajectory observations
87 
88  \return A reference to the internal ObservationDataSetInfo.
89  */
90  const ObservationDataSetInfo& getObservationDataSetInfo() const;
91 
92  /*!
93  \brief It returns information about the DataSource from which the DataSet comes.
94 
95  \return A reference to the internal DataSourceInfo.
96  */
97  const te::da::DataSourceInfo& getDataSourceInfo() const;
98 
99  /*!
100  \brief It returns the indexes of the DataSet properties that contains the times associated to the trajectories.
101 
102  \return The indexes of the DataSet properties that contains the time.
103  */
104  const std::vector<int>& getTimePropIdxs() const;
105 
106  /*!
107  \brief It returns the indexes of the DataSet properties that contains the geometries associated to the trajectories.
108 
109  \return The indexes of the DataSet properties that contains the geometies.
110  */
111  int getGeomPropIdx() const;
112 
113  /*!
114  \brief It returns the indexes of the DataSet properties that contains the identification of each trajectory.
115 
116  \return The indexes of the DataSet properties that contains the identification of each trajectory.
117  */
118  int getIdPropIdx() const;
119 
120  /*!
121  \brief It returns the trajectory id that this DataSet contains
122 
123  \return The trajectory id.
124  */
125  std::string getId() const;
126 
127  /*! \brief Virtual destructor. */
128  virtual ~TrajectoryDataSetInfo();
129 
130  protected:
131 
132  ObservationDataSetInfo m_obsDsInfo; //!< Infos about the DataSource and DataSet that contains the trajectory observations
133  int m_idPropIdx; //!< The property index that contains the identification of each trajectory.
134  std::string m_id; //!< The trajectory id that this DataSet contains
135  };
136  } // end namespace st
137 } // end namespace te
138 
139 #endif // __TERRALIB_ST_INTERNAL_TRAJECTORYDATASETINFO_H
140 
#define TESTEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:90
std::string m_id
The trajectory id that this DataSet contains.
A class that contains infos about a DataSet that contains observations.
ObservationDataSetInfo m_obsDsInfo
Infos about the DataSource and DataSet that contains the trajectory observations. ...
int m_idPropIdx
The property index that contains the identification of each trajectory.
A class that contains infos about a DataSet that contains observations of one or more trajectories...
A class that represents a data source component.