rasdaman complete source
compositetype.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 // -*-C++-*- (for Emacs)
24 
25 /*************************************************************
26  *
27  *
28  * PURPOSE:
29  * The CompositeType class is the superclass for all for
30  * composite types (e.g. Octet, ULong) describing the type of a
31  * cell
32  *
33  *
34  * COMMENTS:
35  *
36  ************************************************************/
37 
38 #ifndef _COMPOSITETYPE_HH_
39 #define _COMPOSITETYPE_HH_
40 
41 #include <iostream>
42 #include "basetype.hh"
43 
44 //@ManMemo: Module: {\bf relcatalogif}.
45 
46 /*@Doc:
47 CompositeType is the abstract base class for all structured
48 \Ref{BaseType} subclasses, at the moment only \Ref{StructType}.
49 */
50 
54 class CompositeType : public BaseType
55 {
56 public:
57  virtual unsigned int getSize() const;
58  /*@Doc:
59  get size of cells of this base type.
60  */
61 
62  CompositeType();
63  /*@Doc:
64  constructor.
65  */
66 
67  CompositeType(const OId& id) throw (r_Error);
68  /*@Doc:
69  constructor.
70  */
71 
72  CompositeType(const CompositeType& old);
73  /*@Doc:
74  constructor.
75  */
76 
77  CompositeType(unsigned int newSize);
78  /*@Doc:
79  constructor.
80  */
81 
82  virtual ~CompositeType();
83  /*@Doc:
84  virtual destructor needed because of subclasses
85  */
86 
88  /*@Doc:
89  */
90 
91 protected:
92  unsigned int size;
93  /*@Doc:
94  size of one cell of this base type in number of chars.
95  */
96 
97  CompositeType(const char* name, unsigned int newSize);
98  /*@Doc:
99  */
100 };
101 
102 #endif
Definition: error.hh:88
unsigned int size
Definition: compositetype.hh:92
virtual unsigned int getSize() const
CompositeType & operator=(const CompositeType &old)
Definition: oidif.hh:67
virtual ~CompositeType()
Definition: compositetype.hh:54
Definition: relcatalogif/basetype.hh:66