ASAGI
1.0
a pArallel Server for Adaptive GeoInformation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
types
structtype.cpp
Go to the documentation of this file.
1
38
#include "
structtype.h
"
39
45
types::Type
*
types::createStruct
(
46
unsigned
int
count,
47
unsigned
int
blockLength[],
48
unsigned
long
displacements[],
49
asagi::Grid::Type
types[])
50
{
51
assert(count >= 1);
52
assert(displacements[0] == 0);
53
54
switch
(types[0]) {
55
case
asagi::Grid::BYTE
:
56
return
new
types::StructType<unsigned char>
(count, blockLength,
57
displacements, types);
58
case
asagi::Grid::INT
:
59
return
new
types::StructType<int>
(count, blockLength,
60
displacements, types);
61
case
asagi::Grid::LONG
:
62
return
new
types::StructType<long>
(count, blockLength,
63
displacements, types);
64
case
asagi::Grid::FLOAT
:
65
return
new
types::StructType<float>
(count, blockLength,
66
displacements, types);
67
case
asagi::Grid::DOUBLE
:
68
return
new
types::StructType<double>
(count, blockLength,
69
displacements, types);
70
}
71
72
assert(
false
);
73
74
return
0L;
75
}
asagi::Grid::FLOAT
Definition:
asagi.h:82
structtype.h
types::createStruct
Type * createStruct(unsigned int count, unsigned int blockLength[], unsigned long displacements[], asagi::Grid::Type types[])
asagi::Grid::LONG
Definition:
asagi.h:80
asagi::Grid::BYTE
Definition:
asagi.h:76
asagi::Grid::INT
Definition:
asagi.h:78
types::StructType
Definition:
structtype.h:53
types::Type
Definition:
type.h:60
asagi::Grid::DOUBLE
Definition:
asagi.h:84
asagi::Grid::Type
Type
Definition:
asagi.h:74
Generated by
1.8.7