dune-grid  2.2.0
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 
13  { ascii = 0 ,
14  xdr = 1 ,
15 
16  pgm = 2 };
17 
18 
19 typedef std::string GrapeIOStringType;
20 
23 template <typename T>
25 {
26  GrapeIOStringType tmp = "unknown";
27  return tmp;
28 }
29 
30 template <>
32 {
33  GrapeIOStringType tmp = "float";
34  return tmp;
35 }
36 
37 template <>
39 {
40  GrapeIOStringType tmp = "int";
41  return tmp;
42 }
43 
44 template <>
46 {
47  GrapeIOStringType tmp = "double";
48  return tmp;
49 }
50 
51 } // end namespace Dune
52 
53 #endif