Loading...
Searching...
No Matches
LogicOp.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 LogicOp.h
22
23 \brief A logical operator can be used to combine one or more conditional expressions.
24 */
25
26#ifndef __TERRALIB_FE_INTERNAL_LOGICOP_H
27#define __TERRALIB_FE_INTERNAL_LOGICOP_H
28
29// TerraLib
30#include "AbstractOp.h"
31
32namespace te
33{
34 namespace fe
35 {
36 /*!
37 \class LogicOp
38
39 \brief A logical operator can be used to combine one or more conditional expressions.
40
41 The logical operator AND evaluates to true if
42 all the combined expressions evaluate to true.
43 The operator OR operator evaluates to true is
44 any of the combined expressions evaluate to true.
45 The NOT operator reverses the logical value of
46 an expression.
47
48 \ingroup fe
49
50 \sa AbstractOp, BinaryLogicOp, UnaryLogicOp
51 */
53 {
54 public:
55
57
58 /** @name Initializer Methods
59 * Methods related to instantiation and destruction.
60 */
61 //@{
62
63 /*!
64 \brief It initializes the LogicOp.
65
66 \param opName The operator name.
67
68 \note The LogicOp will not take the ownership of the given name.
69 */
70 LogicOp(const char* opName = 0);
71
72 /*! \brief Virtual destructor. */
73 virtual ~LogicOp();
74
75 //@}
76
77 /** @name Accessor methods
78 * Methods used to get or set properties.
79 */
80 //@{
81
82 /*! \brief It creates a new copy of this object. */
83 AbstractOp *clone() const;
84
85 //@}
86 };
87
88 } // end namespace fe
89} // end namespace te
90
91#endif // __TERRALIB_FE_INTERNAL_LOGICOP_H
92
#define TE_DEFINE_VISITABLE
Definition: BaseVisitable.h:75
An abstract interface for operators.
Definition: AbstractOp.h:48
A logical operator can be used to combine one or more conditional expressions.
Definition: LogicOp.h:53
LogicOp(const char *opName=0)
It initializes the LogicOp.
virtual ~LogicOp()
Virtual destructor.
AbstractOp * clone() const
It creates a new copy of this object.
TerraLib.
Auxiliary classes and functions to serialize filter operations from a XML document.
#define TEFEEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:59