rasdaman complete source
atomictype.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 AtomicType class is the superclass for all for
30  * atomic types (e.g. Octet, ULong) describing the type of a
31  * cell
32  *
33  *
34  * COMMENTS:
35  *
36  ************************************************************/
37 
38 #ifndef _ATOMICTYPE_HH_
39 #define _ATOMICTYPE_HH_
40 
41 #include <iostream>
42 #include "basetype.hh"
43 
44 //@ManMemo: Module: {\bf relcatalogif}.
45 
46 /*@Doc:
47 AtomicType is the abstract base class for all non-structured
48 \Ref{BaseType} subclasses, i.e. base types like \Ref{ULongType} or
49 \Ref{BoolType}.
50 */
59 class AtomicType : public BaseType
60 {
61 public:
62  virtual unsigned int getSize() const;
63  /*@Doc:
64  get size of cells of this base type.
65  */
66 
67  AtomicType(unsigned int newSize);
68  /*@Doc:
69  constructor.
70  */
71 
72  AtomicType(const AtomicType& old);
73  /*@Doc:
74  copy constructor.
75  */
76 
77  AtomicType(const OId& id) throw (r_Error);
78  /*@Doc:
79  */
80 
81  AtomicType& operator=(const AtomicType& old);
82  /*@Doc:
83  */
84 
85  virtual ~AtomicType();
86  /*@Doc:
87  */
88 
89 protected:
90  unsigned int size;
91  /*@Doc:
92  size of one cell of this base type in number of chars.
93  */
94 
95  AtomicType(const char* name, unsigned int newSize);
96  /*@Doc:
97  */
98 };
99 
100 #endif
AtomicType & operator=(const AtomicType &old)
virtual unsigned int getSize() const
Definition: error.hh:88
AtomicType(unsigned int newSize)
Definition: oidif.hh:67
virtual ~AtomicType()
unsigned int size
Definition: atomictype.hh:90
Definition: atomictype.hh:59
Definition: relcatalogif/basetype.hh:66