rasdaman complete source
qtstringdata.hh
Go to the documentation of this file.
1 #ifndef _QTSTRINGDATA_
2 #define _QTSTRINGDATA_
3 
4 #include "qlparser/qtdata.hh"
5 
6 #ifndef CPPSTDLIB
7 #include <ospace/string.h> // STL<ToolKit>
8 #else
9 #include <string>
10 #endif
11 
12 /*
13 * This file is part of rasdaman community.
14 *
15 * Rasdaman community is free software: you can redistribute it and/or modify
16 * it under the terms of the GNU General Public License as published by
17 * the Free Software Foundation, either version 3 of the License, or
18 * (at your option) any later version.
19 *
20 * Rasdaman community is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
24 *
25 * You should have received a copy of the GNU General Public License
26 * along with rasdaman community. If not, see <http://www.gnu.org/licenses/>.
27 *
28 * Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009 Peter Baumann /
29 rasdaman GmbH.
30 *
31 * For more information please see <http://www.rasdaman.org>
32 * or contact Peter Baumann via <baumann@rasdaman.com>.
33 */
34 /*************************************************************
35  *
36  *
37  * COMMENTS:
38  *
39  ************************************************************/
40 
41 //@ManMemo: Module: {\bf qlparser}
42 
43 /*@Doc:
44  The class encapsulates a string.
45 */
46 
47 class QtStringData : public QtData
48 {
49 public:
51  QtStringData( const std::string& str );
52 
53  //@Man: Read/Write methods:
55 
58  inline const std::string& getStringData() const;
60  inline void setStringData( const std::string& str );
61 
63  virtual char* getTypeStructure() const;
68 
70 
72  virtual QtDataType getDataType() const;
73 
75  virtual bool equal( const QtData* obj ) const;
76 
78  virtual std::string getSpelling() const;
79 
81  virtual void printStatus( std::ostream& stream = std::cout ) const;
82 
83 private:
85  QtStringData() {};
86 
88  std::string stringData;
89 };
90 
91 #include "qlparser/qtstringdata.icc"
92 
93 #endif
94 
95 
96 
97 
Definition: qtdata.hh:83
virtual std::string getSpelling() const
returns content dependent string representation
virtual void printStatus(std::ostream &stream=std::cout) const
print status of the object to the specified stream
virtual char * getTypeStructure() const
returns a null-terminated string describing the type structure
Definition: qtstringdata.hh:47
const std::string & getStringData() const
virtual bool equal(const QtData *obj) const
compares data content
virtual QtDataType getDataType() const
returns { QT_STRING}
QtDataType
Definition: qtdata.hh:48
void setStringData(const std::string &str)