All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FilterCapabilities.cpp
Go to the documentation of this file.
1 /* Copyright (C) 2001-2009 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 FilterCapabilities.cpp
22 
23  \brief This class can be used to create capabilities document of services that use filter encoding.
24  */
25 
26 // TerraLib
27 #include "FilterCapabilities.h"
28 #include "IdCapabilities.h"
29 #include "ScalarCapabilities.h"
30 #include "SpatialCapabilities.h"
31 
32 // STL
33 #include <cassert>
34 
36  : m_spatialCapabilities(0),
37  m_scalarCapabilities(0),
38  m_idCapabilities(0)
39 {
40 }
41 
43 {
44  delete m_spatialCapabilities;
45  delete m_scalarCapabilities;
46  delete m_idCapabilities;
47 }
48 
50 {
51  delete m_spatialCapabilities;
52  m_spatialCapabilities = spCapabilities;
53 }
54 
56 {
57  return m_spatialCapabilities;
58 }
59 
61 {
62  delete m_scalarCapabilities;
63  m_scalarCapabilities = scCapabilities;
64 }
65 
67 {
68  return m_scalarCapabilities;
69 }
70 
72 {
73  delete m_idCapabilities;
74  m_idCapabilities = idCapabilities;
75 }
76 
78 {
79  return m_idCapabilities;
80 }
81 
Scalar capabilities include the ability to process logical expressions, comparisons and arithmetic op...
void setScalarCapabilities(ScalarCapabilities *scCapabilities)
It sets the filter scalar capabilities operations.
void setIdCapabilities(IdCapabilities *idCapabilities)
It sets the filter id capabilities.
void setSpatialCapabilities(SpatialCapabilities *spCapabilities)
It sets the filter spatial capabilities operations.
const SpatialCapabilities * getSpatialCapabilities() const
It returns the filter spatial capabilities.
const IdCapabilities * getIdCapabilities() const
It returns the filter id capabilities.
const ScalarCapabilities * getScalarCapabilities() const
It returns the filter scalar capabilities.
Scalar capabilities include the ability to process logical expressions, comparisons and arithmetic op...
Id capabilities include the ability to refer to elements in a GML version 3 data source using an ogc:...
Id capabilities include the ability to refer to elements in a GML version 3 data source using an ogc:...
Spatial capabilities include the ability to filter spatial data.
Spatial capabilities include the ability to filter spatial data.
This class can be used to create capabilities document of services that use filter encoding...
FilterCapabilities()
It initializes a new FilterCapabilities.