Main Page
Modules
Namespaces
Classes
Files
File List
File Members
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
29
te::vp::InputParams::InputParams
()
30
:
31
m_inputDataSetType(nullptr),
32
m_inputDataSet(nullptr),
33
m_inputQuery(nullptr),
34
m_inputDataSetName(
""
)
35
{
36
}
37
38
te::vp::InputParams::InputParams
(
const
InputParams
& rhs)
39
:
40
m_inputDataSetType
(nullptr),
41
m_inputDataSet
(nullptr),
42
m_inputQuery
(nullptr),
43
m_inputDataSetName
(
""
)
44
{
45
m_inputDataSource
= rhs.
m_inputDataSource
;
46
m_inputDataSetType
= rhs.
m_inputDataSetType
;
47
m_inputDataSet
= rhs.
m_inputDataSet
;
48
m_inputQuery
= rhs.
m_inputQuery
;
49
m_inputDataSetName
= rhs.
m_inputDataSetName
;
50
}
51
52
te::vp::InputParams::~InputParams
()
53
{
54
clear
();
55
}
56
57
te::vp::InputParams
&
te::vp::InputParams::operator=
(
const
InputParams
& rhs)
58
{
59
if
(
this
!= &rhs)
60
{
61
clear
();
62
63
m_inputDataSource
= rhs.
m_inputDataSource
;
64
m_inputDataSetType
= rhs.
m_inputDataSetType
;
65
m_inputDataSet
= rhs.
m_inputDataSet
;
66
m_inputQuery
= rhs.
m_inputQuery
;
67
m_inputDataSetName
= rhs.
m_inputDataSetName
;
68
}
69
70
return
*
this
;
71
}
72
73
void
te::vp::InputParams::clear
()
74
{
75
m_inputDataSource
.reset();
76
m_inputDataSetType
=
nullptr
;
77
m_inputDataSet
=
nullptr
;
78
m_inputQuery
=
nullptr
;
79
m_inputDataSetName
=
""
;
80
}
te::vp::InputParams
A structure to hold the input parameters of vector processing.
Definition:
InputParams.h:50
te::vp::InputParams::clear
void clear()
Clear the structure.
Definition:
InputParams.cpp:73
te::vp::InputParams::operator=
InputParams & operator=(const InputParams &rhs)
Assignment operator.
Definition:
InputParams.cpp:57
te::vp::InputParams::m_inputDataSetName
std::string m_inputDataSetName
Deprecated.
Definition:
InputParams.h:87
te::vp::InputParams::m_inputDataSource
te::da::DataSourcePtr m_inputDataSource
Is Required.
Definition:
InputParams.h:81
te::vp::InputParams::m_inputQuery
te::da::Select * m_inputQuery
Is required for operations in spatial database.
Definition:
InputParams.h:85
InputParams.h
A structure to hold the input parameters of vector processing.
te::vp::InputParams::m_inputDataSetType
te::da::DataSetType * m_inputDataSetType
Is required.
Definition:
InputParams.h:82
te::vp::InputParams::m_inputDataSet
te::da::DataSet * m_inputDataSet
Is required for operations in memory.
Definition:
InputParams.h:84
te::vp::InputParams::~InputParams
~InputParams()
Destructor.
Definition:
InputParams.cpp:52
te::vp::InputParams::InputParams
InputParams()
Constructor.
Definition:
InputParams.cpp:29
terralib5_src
src
terralib
vp
InputParams.cpp
Generated on Wed Jun 6 2018 12:16:09 for TerraLib by
1.8.11