All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DataSetCapabilities.cpp
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/dataset/DataSetCapabilities.cpp
22 
23  \brief A class that informs what the dataset implementation of a given data source can perform.
24 */
25 
26 // TerraLib
27 #include "DataSetCapabilities.h"
28 
30  : m_bidirectional(false),
31  m_random(false),
32  m_indexed(false),
33  m_efficientMovePrevious(false),
34  m_efficientMoveBeforeFirst(false),
35  m_efficientMoveLast(false),
36  m_efficientMoveAfterLast(false),
37  m_efficientMove(false),
38  m_efficientSize(false)
39 {
40 }
41 
43 {
44 }
45 
47 {
48  return m_bidirectional;
49 }
50 
52 {
53  m_bidirectional = support;
54 }
55 
57 {
58  return m_random;
59 }
60 
62 {
63  m_random = support;
64 }
65 
67 {
68  return m_indexed;
69 }
70 
72 {
73  m_indexed = support;
74 }
75 
77 {
78  return m_efficientMovePrevious;
79 }
80 
82 {
83  m_efficientMovePrevious = support;
84 }
85 
87 {
88  return m_efficientMoveBeforeFirst;
89 }
90 
92 {
93  m_efficientMoveBeforeFirst = support;
94 }
95 
97 {
98  return m_efficientMoveLast;
99 }
100 
102 {
103  m_efficientMoveLast = support;
104 }
105 
107 {
108  return m_efficientMoveAfterLast;
109 }
110 
112 {
113  m_efficientMoveAfterLast = support;
114 }
115 
117 {
118  return m_efficientMove;
119 }
120 
122 {
123  m_efficientMove = support;
124 }
125 
127 {
128  return m_efficientSize;
129 }
130 
132 {
133  m_efficientSize = support;
134 }
135 
137 {
138  m_bidirectional = true;
139  m_random = true;
140  m_indexed = true;
141  m_efficientMovePrevious = true;
142  m_efficientMoveBeforeFirst = true;
143  m_efficientMoveLast = true;
144  m_efficientMoveAfterLast = true;
145  m_efficientMove = true;
146  m_efficientSize = true;
147 }
void setSupportEfficientMoveAfterLast(const bool &support)
void setSupportEfficientMove(const bool &support)
void setSupportEfficientMovePrevious(const bool &support)
void setSupportEfficientMoveBeforeFirst(const bool &support)
void setSupportEfficientMoveLast(const bool &support)
void setSupportIndexedTraversing(const bool &support)
void setSupportBidirectionalTraversing(const bool &support)
A class that informs what the dataset implementation of a given data source can perform.
void setSupportRandomTraversing(const bool &support)
bool supportsEfficientMoveBeforeFirst() const
void setSupportEfficientDataSetSize(const bool &support)