rasdaman complete source
qtpointdata.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 _QTPOINTDATA_
31 #define _QTPOINTDATA_
32 
33 #include "qlparser/qtdata.hh"
34 
35 #include "raslib/point.hh"
36 
37 #include <iostream>
38 #include <string>
39 #include <vector>
40 
41 // removed deprecated ostrsteam -- PB 2005-jan-14
42 // #include <strstream.h>
43 
44 //@ManMemo: Module: {\bf qlparser}
45 
46 /*@Doc:
47  The class encapsulates a point of type \Ref{r_Point}.
48 */
49 
50 class QtPointData : public QtData
51 {
52 public:
54  QtPointData( const r_Point& point );
55 
57  virtual ~QtPointData();
58 
59  //@Man: Read/Write methods:
61 
64  inline const r_Point& getPointData() const;
66  inline void setPointData( const r_Point& point );
67 
69  virtual char* getTypeStructure() const;
74 
76 
78  virtual QtDataType getDataType() const;
79 
81  virtual bool equal( const QtData* obj ) const;
82 
84  virtual std::string getSpelling() const;
85 
87  virtual void printStatus( std::ostream& stream = std::cout ) const;
88 
89 private:
91  r_Point pointData;
92 };
93 
94 #include "qlparser/qtpointdata.icc"
95 
96 #endif
97 
98 
99 
100 
101 
virtual QtDataType getDataType() const
returns { QT_POINT}
Definition: point.hh:59
Definition: qtdata.hh:83
virtual ~QtPointData()
virtual destructor
QtPointData(const r_Point &point)
constructor getting a point
virtual void printStatus(std::ostream &stream=std::cout) const
print status of the object to the specified stream
QtDataType
Definition: qtdata.hh:48
virtual bool equal(const QtData *obj) const
compares data content
Definition: qtpointdata.hh:50
virtual char * getTypeStructure() const
returns a null-terminated string describing the type structure
void setPointData(const r_Point &point)
virtual std::string getSpelling() const
returns content dependent string representation
const r_Point & getPointData() const