Loading...
Searching...
No Matches
JoinConditionOn.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 terralib/dataaccess/query/JoinConditionOn.h
22
23 \brief JoinConditionOn is a boolean expression and it specifies which items in a join are considered to match.
24*/
25
26#ifndef __TERRALIB_DATAACCESS_INTERNAL_JOINCONDITIONON_H
27#define __TERRALIB_DATAACCESS_INTERNAL_JOINCONDITIONON_H
28
29// TerraLib
30#include "JoinCondition.h"
31
32// STL
33#include <memory>
34
35namespace te
36{
37 namespace da
38 {
39// Forward declaraton
40 class Expression;
41
42 /*!
43 \class JoinConditionOn
44
45 \brief JoinConditionOn is a boolean expression and it specifies which items in a join are considered to match.
46
47 \sa JoinCondition, JoinConditionUsing
48 */
50 {
51 public:
52
54
55 /*!
56 \brief Constructor.
57
58 \param e A join condition expression.
59
60 \note The JoinConditionOn will take the ownership of the given expression.
61 */
63
64 /*!
65 \brief Constructor.
66
67 \param e A join condition expression.
68 */
70
71 /*! \brief Copy constructor. */
73
74 /*! \brief Destructor. */
76
77 /*! Assignment operator. */
79
80 /*! \brief It creates a new copy of this JoinCondition. */
82
83 /*!
84 \brief It sets the join condition expression.
85
86 \param c A join condition expression.
87
88 \note The JoinConditionOn will take the ownership of the given expression.
89 */
91
92 /*!
93 \brief It returns a pointer to a join condition.
94
95 \return A pointer to a join condition.
96 */
98
99 private:
100
101 std::unique_ptr<Expression> m_condition; //!< The join expression.
102 };
103
104 } // end namespace da
105} // end namespace te
106
107#endif // __TERRALIB_DATAACCESS_INTERNAL_JOINCONDITIONON_H
108
#define TE_DEFINE_VISITABLE
Definition: BaseVisitable.h:75
A condition to be used in a Join clause.
This is an abstract class that models a query expression.
Definition: Expression.h:48
JoinConditionOn is a boolean expression and it specifies which items in a join are considered to matc...
JoinConditionOn & operator=(const JoinConditionOn &rhs)
JoinConditionOn(const JoinConditionOn &rhs)
Copy constructor.
JoinCondition * clone() const
It creates a new copy of this JoinCondition.
void setCondition(Expression *c)
It sets the join condition expression.
std::unique_ptr< Expression > m_condition
The join expression.
TE_DEFINE_VISITABLE JoinConditionOn(Expression *e)
Constructor.
Expression * getCondition() const
It returns a pointer to a join condition.
JoinConditionOn(const Expression &e)
Constructor.
~JoinConditionOn()
Destructor.
A condition to be used in a Join clause.
Definition: JoinCondition.h:45
TerraLib.
#define TEDATAACCESSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:97