11 #include "Graph/map_graph.hpp"
13 #include <boost/fusion/include/mpl.hpp>
14 #include <boost/fusion/include/for_each.hpp>
16 #include "util/common.hpp"
24 template <
typename T> std::string getType()
27 if (
typeid(T) ==
typeid(
float))
29 else if (
typeid(T) ==
typeid(
double))
31 else if (
typeid(T) ==
typeid(
char))
33 else if (
typeid(T) ==
typeid(
unsigned char))
34 return "unsigned_char";
35 else if (
typeid(T) ==
typeid(
short))
37 else if (
typeid(T) ==
typeid(
unsigned short))
38 return "unsigned_short";
39 else if (
typeid(T) ==
typeid(
int))
41 else if (
typeid(T) ==
typeid(
unsigned int))
42 return "unsigned_int";
43 else if (
typeid(T) ==
typeid(
long int))
45 else if (
typeid(T) ==
typeid(
unsigned long int))
46 return "unsigned_long";
47 else if (
typeid(T) ==
typeid(
bool))
66 template<
typename B>
static B to(
const A & data)
68 return static_cast<B
>(data);
81 template<
typename B>
static B to(
const std::string & data)
83 return atof(data.c_str());
99 #define VECTOR_GRIDS 3
100 #define VECTOR_ST_GRIDS 4
102 #define VECTOR_POINTS 6
103 #define VTK_WRITER 0x10000
104 #define FORMAT_ASCII 0x0
105 #define FORMAT_BINARY 0x10000000
107 template <
typename Object,
unsigned int imp>
113 #include "VTKWriter_graph.hpp"
114 #include "VTKWriter_vector_box.hpp"
115 #include "VTKWriter_grids.hpp"
116 #include "VTKWriter_grids_st.hpp"
117 #include "VTKWriter_dist_graph.hpp"
118 #include "VTKWriter_point_set.hpp"
Set a conversion map between A and B.