InputParams.cpp
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 terralib/vp/InputParams.cpp
22 
23  \brief A structure to hold the input parameters of vector processing.
24 */
25 
26 // TerraLib
27 #include "InputParams.h"
28 
30  :
31  m_inputDataSetType(nullptr),
32  m_inputDataSet(nullptr),
33  m_inputQuery(nullptr),
34  m_inputDataSetName("")
35 {
36 }
37 
39  :
40  m_inputDataSetType(nullptr),
41  m_inputDataSet(nullptr),
42  m_inputQuery(nullptr),
44 {
50 }
51 
53 {
54  clear();
55 }
56 
58 {
59  if(this != &rhs)
60  {
61  clear();
62 
68  }
69 
70  return *this;
71 }
72 
74 {
75  m_inputDataSource.reset();
76  m_inputDataSetType = nullptr;
77  m_inputDataSet = nullptr;
78  m_inputQuery = nullptr;
79  m_inputDataSetName = "";
80 }
A structure to hold the input parameters of vector processing.
Definition: InputParams.h:50
void clear()
Clear the structure.
Definition: InputParams.cpp:73
InputParams & operator=(const InputParams &rhs)
Assignment operator.
Definition: InputParams.cpp:57
std::string m_inputDataSetName
Deprecated.
Definition: InputParams.h:87
te::da::DataSourcePtr m_inputDataSource
Is Required.
Definition: InputParams.h:81
te::da::Select * m_inputQuery
Is required for operations in spatial database.
Definition: InputParams.h:85
A structure to hold the input parameters of vector processing.
te::da::DataSetType * m_inputDataSetType
Is required.
Definition: InputParams.h:82
te::da::DataSet * m_inputDataSet
Is required for operations in memory.
Definition: InputParams.h:84
~InputParams()
Destructor.
Definition: InputParams.cpp:52
InputParams()
Constructor.
Definition: InputParams.cpp:29