DataSetCapabilities.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 terralib/dataaccess/dataset/DataSetCapabilities.h
22 
23  \brief A class that informs what the dataset implementation of a given data source can perform.
24 */
25 
26 #ifndef __TERRALIB_DATAACCESS_INTERNAL_DATASETCAPABILITIES_H
27 #define __TERRALIB_DATAACCESS_INTERNAL_DATASETCAPABILITIES_H
28 
29 // TerraLib
30 #include "../Config.h"
31 
32 namespace te
33 {
34  namespace da
35  {
36  /*!
37  \class DataSetCapabilities
38 
39  \brief A class that informs what the dataset implementation of a given data source can perform.
40 
41  \ingroup dataaccess
42  */
44  {
45  public:
46 
47  /*! \brief Constructor. */
49 
50  /*! \brief Destructor. */
52 
53  public:
54 
55  bool supportsBidirectionalTraversing() const;
56 
57  void setSupportBidirectionalTraversing(const bool& support);
58 
59  bool supportsRandomTraversing() const;
60 
61  void setSupportRandomTraversing(const bool& support);
62 
63  bool supportsIndexedTraversing() const;
64 
65  void setSupportIndexedTraversing(const bool& support);
66 
67  bool supportsEfficientMovePrevious() const;
68 
69  void setSupportEfficientMovePrevious(const bool& support);
70 
71  bool supportsEfficientMoveBeforeFirst() const;
72 
73  void setSupportEfficientMoveBeforeFirst(const bool& support);
74 
75  bool supportsEfficientMoveLast() const;
76 
77  void setSupportEfficientMoveLast(const bool& support);
78 
79  bool supportsEfficientMoveAfterLast() const;
80 
81  void setSupportEfficientMoveAfterLast(const bool& support);
82 
83  bool supportsEfficientMove() const;
84 
85  void setSupportEfficientMove(const bool& support);
86 
87  bool supportsEfficientDataSetSize() const;
88 
89  void setSupportEfficientDataSetSize(const bool& support);
90 
91  void setSupportAll();
92 
93  private:
94 
95  bool m_bidirectional; //!< A flag that indicates if the data set supports traversing in a bidirectional way.
96  bool m_random; //!< A flag that indicates if the data set supports traversing in a random way.
97  bool m_indexed; //!< A flag that indicates if the data set supports traversing using a given key.
98  bool m_efficientMovePrevious; //!< A flag that indicates if the performance of move previous operation has no penality.
99  bool m_efficientMoveBeforeFirst; //!< A flag that indicates if the performance of move before first operation has no penality.
100  bool m_efficientMoveLast; //!< A flag that indicates if the performance of move last operation has no penality.
101  bool m_efficientMoveAfterLast; //!< A flag that indicates if the performance of move after last operation has no penality.
102  bool m_efficientMove; //!< A flag that indicates if the performance of move operation has no penality.
103  bool m_efficientSize; //!< A flag that indicates if the performance of getting data set size operation has no penality.
104  };
105 
106  } // end namespace da
107 } // end namespace te
108 
109 #endif // __TERRALIB_DATAACCESS_INTERNAL_DATASETCAPABILITIES_H
bool m_efficientMoveAfterLast
A flag that indicates if the performance of move after last operation has no penality.
bool m_random
A flag that indicates if the data set supports traversing in a random way.
A class that informs what the dataset implementation of a given data source can perform.
URI C++ Library.
bool m_efficientMoveBeforeFirst
A flag that indicates if the performance of move before first operation has no penality.
dataTypeCapabilities setSupportAll()
bool m_bidirectional
A flag that indicates if the data set supports traversing in a bidirectional way. ...
bool m_efficientMoveLast
A flag that indicates if the performance of move last operation has no penality.
bool m_efficientMovePrevious
A flag that indicates if the performance of move previous operation has no penality.
bool m_efficientMove
A flag that indicates if the performance of move operation has no penality.
#define TEDATAACCESSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:97
bool m_indexed
A flag that indicates if the data set supports traversing using a given key.
bool m_efficientSize
A flag that indicates if the performance of getting data set size operation has no penality...