Loading...
Searching...
No Matches
PropertyIsBetween.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 PropertyIsBetween.h
22
23 \brief The PropertyIsBetween element is defined as a compact way of encoding a range check.
24 */
25
26#ifndef __TERRALIB_FE_INTERNAL_PROPERTYISBETWEEN_H
27#define __TERRALIB_FE_INTERNAL_PROPERTYISBETWEEN_H
28
29// TerraLib
30#include "ComparisonOp.h"
31
32namespace te
33{
34 namespace fe
35 {
36 /*!
37 \class PropertyIsBetween
38
39 \brief The PropertyIsBetween element is defined as a compact way of encoding a range check.
40
41 The lower and upper boundary values are inclusive.
42
43 \ingroup fe
44
45 \sa ComparisonOp, Expression
46 */
48 {
49 public:
50
52
53 /** @name Initializer Methods
54 * Methods related to instantiation and destruction.
55 */
56 //@{
57
58 /*! \brief It initializes a new PropertyIsBetween. */
60
61 /*! \brief Destructor. */
63
64 //@}
65
66 /** @name Accessor methods
67 * Methods used to get or set properties.
68 */
69 //@{
70
71 /*!
72 \brief It sets the between expression.
73
74 \param e The between expression.
75
76 \note It will take the ownership of the between expression.
77
78 */
80
81 /*!
82 \brief It returns the between expression.
83
84 \return The between expression.
85 */
87
88 /*!
89 \brief It sets the lower boundary expression.
90
91 \param e The lower boundary expression.
92
93 \note It will take the ownership of the lower boundary expression.
94 */
96
97 /*!
98 \brief It returns the lower boundary expression.
99
100 \return The lower boundary expression.
101 */
103
104 /*!
105 \brief It sets the lower boundary expression.
106
107 \param e The upper boundary expression.
108
109 \note It will take the ownership of the upper boundary expression.
110 */
112
113 /*!
114 \brief It returns the upper boundary expression.
115
116 \return The upper boundary expression.
117 */
119
120 //@}
121
122 /*! \brief It creates a new copy of this object. */
124
125 private:
126
127 Expression* m_expression; //!< Mandatory.
128 Expression* m_lowerBoundary; //!< Mandatory.
129 Expression* m_upperBoundary; //!< Mandatory.
130 };
131
132 } // end namespace fe
133} // end namespace te
134
135#endif // __TERRALIB_FE_INTERNAL_PROPERTYISBETWEEN_H
#define TE_DEFINE_VISITABLE
Definition: BaseVisitable.h:75
A comparison operator is used to form expressions that evaluate the mathematical comparison between t...
A comparison operator is used to form expressions that evaluate the mathematical comparison between t...
Definition: ComparisonOp.h:50
This is an abstract class that models a Filter Encoding expression.
Definition: Expression.h:51
The PropertyIsBetween element is defined as a compact way of encoding a range check.
void setExpression(Expression *e)
It sets the between expression.
Expression * getExpression() const
It returns the between expression.
PropertyIsBetween()
It initializes a new PropertyIsBetween.
ComparisonOp * clone() const
It creates a new copy of this object.
~PropertyIsBetween()
Destructor.
Expression * m_lowerBoundary
Mandatory.
void setLowerBoundary(Expression *e)
It sets the lower boundary expression.
Expression * getLowerBoundary() const
It returns the lower boundary expression.
Expression * m_upperBoundary
Mandatory.
void setUpperBoundary(Expression *e)
It sets the lower boundary expression.
Expression * getUpperBoundary() const
It returns the upper boundary expression.
Expression * m_expression
Mandatory.
TerraLib.
#define TEFEEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:59