dune-grid
2.2.1
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
#ifndef DUNE_GRAPEDATAIOFORMATTYPE_HH
2
#define DUNE_GRAPEDATAIOFORMATTYPE_HH
3
4
//- system includes
5
#include <string>
6
7
namespace
Dune {
8
12
enum
GrapeIOFileFormatType
13
{
ascii
= 0 ,
14
xdr
= 1 ,
15
16
pgm
= 2 };
17
18
19
typedef
std::string
GrapeIOStringType
;
20
23
template
<
typename
T>
24
inline
GrapeIOStringType
typeIdentifier
()
25
{
26
GrapeIOStringType
tmp =
"unknown"
;
27
return
tmp;
28
}
29
30
template
<>
31
inline
GrapeIOStringType
typeIdentifier<float>
()
32
{
33
GrapeIOStringType
tmp =
"float"
;
34
return
tmp;
35
}
36
37
template
<>
38
inline
GrapeIOStringType
typeIdentifier<int>
()
39
{
40
GrapeIOStringType
tmp =
"int"
;
41
return
tmp;
42
}
43
44
template
<>
45
inline
GrapeIOStringType
typeIdentifier<double>
()
46
{
47
GrapeIOStringType
tmp =
"double"
;
48
return
tmp;
49
}
50
51
}
// end namespace Dune
52
53
#endif
Generated on Sat May 18 2013 17:57:44 for dune-grid by
1.8.1.2