dune-grid
2.3beta2
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
dune
grid
utility
grapedataioformattypes.hh
Go to the documentation of this file.
1
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2
// vi: set et ts=4 sw=2 sts=2:
3
#ifndef DUNE_GRAPEDATAIOFORMATTYPE_HH
4
#define DUNE_GRAPEDATAIOFORMATTYPE_HH
5
6
//- system includes
7
#include <string>
8
9
namespace
Dune {
10
14
enum
GrapeIOFileFormatType
15
{
ascii
= 0 ,
16
xdr
= 1 ,
17
18
pgm
= 2 };
19
20
21
typedef
std::string
GrapeIOStringType
;
22
25
template
<
typename
T>
26
inline
GrapeIOStringType
typeIdentifier
()
27
{
28
GrapeIOStringType
tmp =
"unknown"
;
29
return
tmp;
30
}
31
32
template
<>
33
inline
GrapeIOStringType
typeIdentifier<float>
()
34
{
35
GrapeIOStringType
tmp =
"float"
;
36
return
tmp;
37
}
38
39
template
<>
40
inline
GrapeIOStringType
typeIdentifier<int>
()
41
{
42
GrapeIOStringType
tmp =
"int"
;
43
return
tmp;
44
}
45
46
template
<>
47
inline
GrapeIOStringType
typeIdentifier<double>
()
48
{
49
GrapeIOStringType
tmp =
"double"
;
50
return
tmp;
51
}
52
53
}
// end namespace Dune
54
55
#endif
Generated on Mon Feb 10 2014 21:12:30 for dune-grid by
1.8.1.2