AlgorithmParams.h
Go to the documentation of this file.
1 /* Copyright (C) 2008 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 AlgorithmParams.h
22 
23  \brief Algorithm Parameters.
24 
25  \ingroup vp
26  */
27 
28 #ifndef __TERRALIB_VP_INTERNAL_ALGORITHM_PARAMS_H
29 #define __TERRALIB_VP_INTERNAL_ALGORITHM_PARAMS_H
30 
31 // Terralib
32 #include "../dataaccess/dataset/DataSet.h"
33 #include "../dataaccess/datasource/DataSource.h"
34 #include "Config.h"
35 #include "InputParams.h"
36 
37 // STL
38 #include <string>
39 #include <vector>
40 
41 namespace te
42 {
43  namespace vp
44  {
45  /*!
46  \class Algorithm Parameters
47 
48  \brief Define input/output parameters for an operation.
49  */
51  {
52  public:
53 
55 
56  /*!
57  \brief Constructor.
58 
59  \param map with a DataSetName as a key and a DataSource as a value.
60 
61  \note The AlgorithmParams will take the ownership of DataSource.
62  */
63  AlgorithmParams(const std::vector<te::vp::InputParams>& inputParams,
64  te::da::DataSource* outputDataSource,
65  const std::string& outputDataSetName,
66  const std::map<std::string, te::dt::AbstractData*>& specificParams);
67 
68  /*! \brief Destructor. */
69  ~AlgorithmParams();
70 
71 
72  std::vector<te::vp::InputParams> getInputParams();
73 
74  void setInputParams(const std::vector<te::vp::InputParams>& setInputParams);
75 
76 
77  te::da::DataSource* getOutputDataSource();
78 
79  void setOutputDataSource(te::da::DataSource* outputDataSource);
80 
81 
82  const std::string& getOutputDataSetName();
83 
84  void setOutputDataSetName(const std::string& outputDataSetName);
85 
86 
87  const std::map<std::string, te::dt::AbstractData*>& getSpecificParams();
88 
89  void setSpecificParams(const std::map<std::string, te::dt::AbstractData*>& specificParams);
90 
91  protected:
92 
93  std::vector<te::vp::InputParams> m_inputParams;
95  std::string m_outputDataSetName;
96  std::map<std::string, te::dt::AbstractData*> m_specificParams;
97  };
98  }
99 }
100 #endif // __TERRALIB_VP_INTERNAL_ALGORITHM_PARAMS_H
#define TEVPEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:61
std::map< std::string, te::dt::AbstractData * > m_specificParams
An abstract class for data providers like a DBMS, Web Services or a regular file. ...
Definition: DataSource.h:118
A structure to hold the input parameters of vector processing.
URI C++ Library.
te::da::DataSource * m_outputDataSource
std::vector< te::vp::InputParams > m_inputParams
Configuration flags for the Terrralib Vector Processing module.
std::string m_outputDataSetName