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 
32 namespace 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. */
62  ~PropertyIsBetween();
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  */
79  void setExpression(Expression* e);
80 
81  /*!
82  \brief It returns the between expression.
83 
84  \return The between expression.
85  */
86  Expression* getExpression() const;
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  */
95  void setLowerBoundary(Expression* e);
96 
97  /*!
98  \brief It returns the lower boundary expression.
99 
100  \return The lower boundary expression.
101  */
102  Expression* getLowerBoundary() const;
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  */
111  void setUpperBoundary(Expression* e);
112 
113  /*!
114  \brief It returns the upper boundary expression.
115 
116  \return The upper boundary expression.
117  */
118  Expression* getUpperBoundary() const;
119 
120  //@}
121 
122  private:
123 
124  Expression* m_expression; //!< Mandatory.
125  Expression* m_lowerBoundary; //!< Mandatory.
126  Expression* m_upperBoundary; //!< Mandatory.
127  };
128 
129  } // end namespace fe
130 } // end namespace te
131 
132 #endif // __TERRALIB_FE_INTERNAL_PROPERTYISBETWEEN_H
#define TEFEEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:59
The PropertyIsBetween element is defined as a compact way of encoding a range check.
A comparison operator is used to form expressions that evaluate the mathematical comparison between t...
Definition: ComparisonOp.h:49
URI C++ Library.
This is an abstract class that models a Filter Encoding expression.
Definition: Expression.h:50
Expression * m_lowerBoundary
Mandatory.
#define TE_DEFINE_VISITABLE
Definition: BaseVisitable.h:75
Expression * m_upperBoundary
Mandatory.
A comparison operator is used to form expressions that evaluate the mathematical comparison between t...
Expression * m_expression
Mandatory.