rasdaman complete source
qtmddconfig.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  *
26  * CHANGE HISTORY (append further entries):
27  * when who what
28  * ----------------------------------------------------------
29  * 10-11-08 Shams Created the class
30  * 14-08-09 Andrei Reimplemented the class
31  * COMMENTS:
32  *
33  ************************************************************/
34 #ifndef _QTMDDCONFIG_HH_
35 #define _QTMDDCONFIG_HH_
36 
37 #include "qlparser/qtconst.hh"
38 #include "rasodmg/dirdecompose.hh"
39 #include <iostream>
40 #ifndef CPPSTDLIB
41 #include <ospace/string.h> // STL<ToolKit>
42 #else
43 #include <string>
44 using namespace std;
45 #endif
46 #include<fstream>
47 
48 
49 class QtMDDConfig: public QtData
50 {
51 private:
52  int tilingType;
53  int tileSize;
54  int borderThreshold;
55  double interestThreshold;
56  QtOperation* tileCfg;
58  std::vector<r_Dir_Decompose>* dDecomp;
59  int indexType;
60  int param; // wavelet param
61 
62 public:
63  // Constructors
64  QtMDDConfig();
65  QtMDDConfig( int tilingType, int tileSize, int borderThreshold,
66  double interestThreshold, QtOperation* tileCfg,
67  QtNode::QtOperationList* box,std::vector<r_Dir_Decompose>* dDecomp,
68  int indexType);
69  QtMDDConfig( int tilingType, int tileSize, int borderThreshold,
70  double interestThreshold, QtOperation* tileCfg,
71  QtNode::QtOperationList* box,std::vector<r_Dir_Decompose>* dDecomp);
72  QtMDDConfig(int index);
73 
74  // Getters
75  int getTileSize();
76  int getBorderThreshold();
77  double getInterestThreshold();
78  std::vector<r_Dir_Decompose>* getDirDecomp();
79  int getStorageType();
80  int getWltValue(); // Check return type !
81  int getIndexType();
82  int getTilingType();
83  QtNode::QtOperationList* getBboxList();
84  QtOperation* getTileCfg();
85 
86  // Setters
87  void setBorderThreshold(int threshold);
88 
89  // Pure virtual methods definition (from class QtData)
90  virtual QtDataType getDataType() const;
91  virtual char* getTypeStructure() const;
92  virtual bool equal(const QtData*) const;
93  virtual string getSpelling() const;
94 
96  {
105  r_TC_INDEX
106  };
107 
109  {
117  r_STATISTICS_TLG
118  };
119 
121  {
147  r_ZLIB_STG
148  };
149 };
150 
151 #endif
Definition: qtmddconfig.hh:104
Definition: qtmddconfig.hh:111
Definition: qtmddconfig.hh:141
Definition: qtmddconfig.hh:130
Definition: qtmddconfig.hh:97
Definition: qtmddconfig.hh:126
Definition: qtmddconfig.hh:143
Definition: qtmddconfig.hh:125
Definition: qtmddconfig.hh:98
Definition: qtmddconfig.hh:112
Definition: qtmddconfig.hh:102
Definition: qtdata.hh:83
Definition: qtmddconfig.hh:127
Definition: qtmddconfig.hh:140
QtStorageConstants
Definition: qtmddconfig.hh:120
Definition: qtmddconfig.hh:49
QtIndexConstants
Definition: qtmddconfig.hh:95
Definition: qtmddconfig.hh:115
Definition: qtmddconfig.hh:124
Definition: qtmddconfig.hh:138
Definition: qtmddconfig.hh:131
Definition: qtmddconfig.hh:133
Definition: qtmddconfig.hh:116
Definition: qtmddconfig.hh:114
Definition: qtmddconfig.hh:103
Definition: qtmddconfig.hh:110
Definition: qtmddconfig.hh:139
Definition: qtmddconfig.hh:128
Definition: qtmddconfig.hh:132
Definition: qtmddconfig.hh:142
QtTilingConstants
Definition: qtmddconfig.hh:108
Definition: qtmddconfig.hh:100
Definition: qtmddconfig.hh:135
Definition: qtmddconfig.hh:134
Definition: qtmddconfig.hh:122
Definition: qtmddconfig.hh:99
Definition: qtmddconfig.hh:113
QtDataType
Definition: qtdata.hh:48
Definition: qtmddconfig.hh:145
Definition: qtoperation.hh:57
Definition: qtmddconfig.hh:146
Definition: qtmddconfig.hh:136
Definition: qtmddconfig.hh:123
Definition: qtmddconfig.hh:144
Definition: qtmddconfig.hh:137
std::vector< QtOperation * > QtOperationList
list of QtOperation pointers
Definition: qtnode.hh:194
Definition: qtmddconfig.hh:129
Definition: qtmddconfig.hh:101