rasdaman complete source
qtmintervaldata.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  * COMMENTS:
27  *
28  ************************************************************/
29 
30 #ifndef _QTMINTERVALDATA_
31 #define _QTMINTERVALDATA_
32 
33 #include "qlparser/qtdata.hh"
34 
35 #include "raslib/minterval.hh"
36 #include "raslib/point.hh"
37 
38 #include <string>
39 #include <vector>
40 #include <iostream>
41 
42 //@ManMemo: Module: {\bf qlparser}
43 
44 /*@Doc:
45  The class encapsulates an minterval.
46 */
47 
48 class QtMintervalData : public QtData
49 {
50 public:
52  QtMintervalData( const r_Minterval& minterval, vector<bool>* initTrimFlags = NULL );
53 
55  virtual ~QtMintervalData();
56 
57  //@Man: Read/Write methods:
59 
62  inline const r_Minterval& getMintervalData() const;
64  inline void setMintervalData( const r_Minterval& interval );
65  //
66  // inline void setMintervalData( const r_Point& point );
68  inline const vector<bool>* getTrimFlags() const;
69 
71  virtual char* getTypeStructure() const;
76 
78 
80  virtual QtDataType getDataType() const;
81 
83  virtual bool equal( const QtData* obj ) const;
84 
86  virtual std::string getSpelling() const;
87 
89  virtual void printStatus( std::ostream& stream = std::cout ) const;
90 
91 private:
93  QtMintervalData() {};
94 
96  r_Minterval mintervalData;
97 
99  vector<bool>* trimFlags;
100 };
101 
102 #include "qlparser/qtmintervaldata.icc"
103 
104 #endif
105 
106 
107 
108 
virtual bool equal(const QtData *obj) const
compares data content
const vector< bool > * getTrimFlags() const
void setMintervalData(const r_Minterval &interval)
Definition: qtdata.hh:83
virtual void printStatus(std::ostream &stream=std::cout) const
print status of the object to the specified stream
virtual QtDataType getDataType() const
returns { QT_INTERVAL}
const r_Minterval & getMintervalData() const
QtDataType
Definition: qtdata.hh:48
virtual char * getTypeStructure() const
returns a null-terminated string describing the type structure
Definition: qtmintervaldata.hh:48
virtual std::string getSpelling() const
returns content dependent string representation
Definition: minterval.hh:249
virtual ~QtMintervalData()
virtual destructor