rasdaman complete source
stgmddconfig.hh
Go to the documentation of this file.
1 /*
2 * This file is part of rasdaman community.
3 *
4 * Rasdaman community is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * Rasdaman community is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with rasdaman community. If not, see <http://www.gnu.org/licenses/>.
16 *
17 * Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009 Peter Baumann /
18 rasdaman GmbH.
19 *
20 * For more information please see <http://www.rasdaman.org>
21 * or contact Peter Baumann via <baumann@rasdaman.com>.
22 */
23 
24 
25 #ifndef _STORAGE_MDD_CONFIG_HH_
26 #define _STORAGE_MDD_CONFIG_HH_
27 
28 #include <vector>
29 #include "rasodmg/dirdecompose.hh"
30 #include "raslib/minterval.hh"
31 
32 /****************************************************************************
33  *
34  *
35  * INCLUDE: stgmddconfig.hh
36  *
37  * MODULE: qlparser
38  * CLASS: StgMddConfig
39  *
40  * CHANGE HISTORY (append further entries):
41  * when who what
42  * -----------------------------------------------------------------------
43  * 17-Aug-09 aaiordachi create class (for adding rasql tiling options)
44  * COMMENTS:
45  *
46  ****************************************************************************/
47 
49 {
50 private:
51  std::vector<r_Minterval> bboxes;
52  double interestThreshold;
53  unsigned int borderThreshold;
54  bool subTiling;
55  int cellSize;
56  std::vector<r_Dir_Decompose> dirDecomp;
57 
58 public:
59 
60  StgMddConfig();
61  ~StgMddConfig();
62 
63  // Setter functions
64  void setBBoxes(const std::vector<r_Minterval>& input);
65  void setSubTiling();
66  void resetSubTiling();
67  void setInterestThreshold(double i);
68  void setBorderThreshold(unsigned int b);
69  void setCellSize(int size);
70  void setDirDecompose(const std::vector<r_Dir_Decompose>& input);
71 
72  // Getter functions
73  std::vector<r_Minterval>& getBBoxes();
74  bool getSubTiling();
75  double getInterestThreshold();
76  unsigned int getBorderThreshold();
77  int getCellSize();
78  std::vector<r_Dir_Decompose>& getDirDecompose();
79 
80 };
81 #endif
unsigned int getBorderThreshold()
void setBorderThreshold(unsigned int b)
bool getSubTiling()
std::vector< r_Minterval > & getBBoxes()
void setBBoxes(const std::vector< r_Minterval > &input)
double getInterestThreshold()
void setSubTiling()
void resetSubTiling()
void setCellSize(int size)
void setInterestThreshold(double i)
void setDirDecompose(const std::vector< r_Dir_Decompose > &input)
Definition: stgmddconfig.hh:48
std::vector< r_Dir_Decompose > & getDirDecompose()
int getCellSize()