rasdaman client API 10.6.3
The Array Analytics Engine: Datacubes at Your Fingertips
basetype.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 /
18rasdaman GmbH.
19*
20* For more information please see <http://www.rasdaman.org>
21* or contact Peter Baumann via <baumann@rasdaman.com>.
22*/
23
24#ifndef _D_BASETYPE_
25#define _D_BASETYPE_
26
27#include "raslib/type.hh"
28
29//@ManMemo: Module: {\bf raslib}
39class r_Base_Type : public r_Type
40{
41public:
43 r_Base_Type() = default;
44
46 r_Base_Type(const char *newTypeName, r_Bytes newSize);
47
50
52 const r_Base_Type &operator=(const r_Base_Type &oldObj);
53
55 virtual ~r_Base_Type() = default;
56
58 virtual bool isBaseType() const;
59
61 r_Bytes size() const;
62
64 virtual void print_value(const char *storage, std::ostream &s) const = 0;
65
66protected:
69};
70
71#endif
This class is the superclass of the types r_Structure_Type and r_Primitive_Type in the representation...
Definition basetype.hh:40
r_Base_Type(const r_Base_Type &)
copy constructor
virtual bool isBaseType() const
check, if type is a base type (primitive type or structure type).
r_Base_Type()=default
default constructor.
const r_Base_Type & operator=(const r_Base_Type &oldObj)
assignment operator.
r_Bytes size() const
retrieve size of the type.
r_Bytes typeSize
storing size of type in bytes
Definition basetype.hh:68
virtual void print_value(const char *storage, std::ostream &s) const =0
prints value of a primitive type or values of a structured type
virtual ~r_Base_Type()=default
destructor.
r_Base_Type(const char *newTypeName, r_Bytes newSize)
constructor getting name of basetype.
This class the superclass for all types in the ODMG conformant representation of the RasDaMan type sy...
Definition type.hh:51
size_t r_Bytes
number of bytes in an tile or mdd or type.
Definition mddtypes.hh:43