rasdaman complete source
qtatomicdata.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 #ifndef _QTATOMICDATA_HH_
24 #define _QTATOMICDATA_HH_
25 
26 #include "qlparser/qtscalardata.hh"
27 #include "raslib/odmgtypes.hh"
28 
29 /*************************************************************
30  *
31  *
32  * COMMENTS:
33  *
34  ************************************************************/
35 
36 //@ManMemo: Module: {\bf qlparser}
37 
38 /*@Doc:
39 
40  The class represents an atomic value handled by the query tree.
41 
42 */
43 
44 class QtAtomicData : public QtScalarData
45 {
46 public:
48  QtAtomicData();
49 
51  QtAtomicData( r_Long value, unsigned short byteLength );
62  QtAtomicData( r_ULong value, unsigned short byteLength );
74  QtAtomicData( bool value );
76 
78  QtAtomicData( double value, unsigned short byteLength );
88  QtAtomicData(double valRe, double valIm, unsigned short size);
90 
92  QtAtomicData( const QtAtomicData& obj );
93 
95  virtual ~QtAtomicData();
96 
98  r_ULong getUnsignedValue() const;
99 
101  r_Long getSignedValue() const;
102 
104  double getDoubleValue() const;
105 
107  virtual void printStatus( std::ostream& stream = std::cout ) const;
108 };
109 
110 #include "qlparser/qtatomicdata.icc"
111 
112 #endif
113 
114 
115 
116 
117 
118 
119 
120 
121 
122 
123 
124 
125 
126 
127 
128 
129 
130 
131 
132 
133 
134 
Definition: qtatomicdata.hh:44
double getDoubleValue() const
returning double value if it is one, 0 otherwise
unsigned int r_ULong
Definition: odmgtypes.hh:114
r_ULong getUnsignedValue() const
returning unsigned value of an unsigned atomic type if it is one, 0 otherwise
virtual ~QtAtomicData()
destructor
Definition: qtscalardata.hh:53
QtAtomicData()
default constructor
int r_Long
Definition: odmgtypes.hh:100
r_Long getSignedValue() const
returning signed value of a signed atomic type if it is one, 0 otherwise
virtual void printStatus(std::ostream &stream=std::cout) const
print status of the object to the specified stream