summaryrefslogtreecommitdiffstats
path: root/manuals_and_examples/examples/rasdl/basictypes.dl
blob: 2578f0e7d601e6246e78eceb93ec6dc10ee3106b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
/*
* This file is part of rasdaman community.
*
* Rasdaman community is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Rasdaman community is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with rasdaman community.  If not, see <http://www.gnu.org/licenses/>.
*
* Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009 Peter Baumann /
rasdaman GmbH.
*
* For more information please see <http://www.rasdaman.org>
* or contact Peter Baumann via <baumann@rasdaman.com>.
*/
// ---------------------------------------------------------------------
//
// PURPOSE:
// This file contains rasdaman type definitions. During database creation,
// these are normally imported through
//	rasdl --read basictypes.dl --insert
//
// This is not mandatory, though. The cell base types are available anyway,
// and if you decide you need other MDD and ollection types than the ones
// provided here then it is safe to skip importing this file.
//
// See the Rasql Query Language Guide for an explanation of the syntax.
//
// ---------------------------------------------------------------------


// 2D greyscale image of unlimited spatial extent
typedef marray <char,2> GreyImage;
typedef set<GreyImage> GreySet;

// 2D binary image of unlimited spatial extent
typedef marray <boolean,2> BoolImage;
typedef set<BoolImage> BoolSet;

// 2D RGB image of unlimited spatial extent
struct RGBPixel { char red, green, blue; };
typedef marray <RGBPixel,2> RGBImage;
typedef set<RGBImage> RGBSet;

// 2D 32-bit pixel of unlimited spatial extent
typedef marray <unsigned long, 2> ULongImage;
typedef set<ULongImage> ULongSet;

//
// these above may serve as examples of the principle.
// Below more types which are useful in practice.
//

typedef marray <char, 3> GreyCube;
typedef set<GreyCube> GreySet3;

typedef marray <boolean, 1> BoolString;
typedef set<BoolString> BoolSet1;

typedef marray <boolean, 3> BoolCube;
typedef set<BoolCube> BoolSet3;

typedef marray <char, 1> GreyString;
typedef set<GreyString> GreySet1;

typedef marray <octet, 1> OctetString;
typedef set<OctetString> OctetSet1;

typedef marray <octet, 2> OctetImage;
typedef set<OctetImage> OctetSet;

typedef marray <octet, 3> OctetCube;
typedef set<OctetCube> OctetSet3;

typedef marray <short, 1> ShortString;
typedef set<ShortString> ShortSet1;

typedef marray <short, 2> ShortImage;
typedef set<ShortImage> ShortSet;

typedef marray <short, 3> ShortCube;
typedef set<ShortCube> ShortSet3;

typedef marray <unsigned short, 1> UShortString;
typedef set<UShortString> UShortSet1;

typedef marray <unsigned short, 2> UShortImage;
typedef set<UShortImage> UShortSet;

typedef marray <unsigned short, 3> UShortCube;
typedef set<UShortCube> UShortSet3;

typedef marray <long, 1> LongString;
typedef set<LongString> LongSet1;

typedef marray <long, 2> LongImage;
typedef set<LongImage> LongSet;

typedef marray <long, 3> LongCube;
typedef set<LongCube> LongSet3;

typedef marray <unsigned long, 1> ULongString;
typedef set<ULongString> ULongSet1;

typedef marray <unsigned long, 3> ULongCube;
typedef set<ULongCube> ULongSet3;

typedef marray <RGBPixel, 1> RGBString;
typedef set<RGBString> RGBSet1;

typedef marray <RGBPixel, 3> RGBCube;
typedef set<RGBCube> RGBSet3;

typedef marray <float, 1> FloatString;
typedef set<FloatString> FloatSet1;

typedef marray <float, 2> FloatImage;
typedef set<FloatImage> FloatSet;

typedef marray <float, 3> FloatCube;
typedef set<FloatCube> FloatSet3;

typedef marray <float, 4> FloatCube4;
typedef set<FloatCube4> FloatSet4;

typedef marray <double, 1> DoubleString;
typedef set<DoubleString> DoubleSet1;

typedef marray <double, 2> DoubleImage;
typedef set<DoubleImage> DoubleSet;

typedef marray <double, 3> DoubleCube;
typedef set<DoubleCube> DoubleSet3;

typedef marray <complex, 1> Gauss1;
typedef set<Gauss1> GaussSet1;

typedef marray<complexd, 1> Gauss2;
typedef set<Gauss2> GaussSet2;

typedef marray <complex, 2> Gauss1Image;
typedef set<Gauss1Image> Gauss1Set;
 
typedef marray<complexd, 2> Gauss2Image;
typedef set<Gauss2Image> Gauss2Set;

// --- end  -----------------------------------------------------------