OpenFPM_pdata  1.1.0
Project that contain the implementation of distributed structures
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Pages
is_csv_writable.hpp
1 /*
2  * is_csv_writable.hpp
3  *
4  * Created on: Jul 18, 2016
5  * Author: i-bird
6  */
7 
8 #ifndef OPENFPM_IO_SRC_CSVWRITER_IS_CSV_WRITABLE_HPP_
9 #define OPENFPM_IO_SRC_CSVWRITER_IS_CSV_WRITABLE_HPP_
10 
11 
13 template<typename T>
15 {
17  enum
18  {
19  value = false
20  };
21 };
22 
24 template<>
25 struct is_csv_writable<float>
26 {
28  enum
29  {
30  value = true
31  };
32 };
33 
35 template<>
36 struct is_csv_writable<double>
37 {
39  enum
40  {
41  value = true
42  };
43 };
44 
46 template<>
47 struct is_csv_writable<char>
48 {
50  enum
51  {
52  value = true
53  };
54 };
55 
57 template<>
58 struct is_csv_writable<unsigned char>
59 {
61  enum
62  {
63  value = true
64  };
65 };
66 
68 template<>
69 struct is_csv_writable<short>
70 {
72  enum
73  {
74  value = true
75  };
76 };
77 
79 template<>
80 struct is_csv_writable<unsigned short>
81 {
83  enum
84  {
85  value = true
86  };
87 };
88 
90 template<>
91 struct is_csv_writable<int>
92 {
94  enum
95  {
96  value = true
97  };
98 };
99 
101 template<>
102 struct is_csv_writable<unsigned int>
103 {
105  enum
106  {
107  value = true
108  };
109 };
110 
112 template<>
113 struct is_csv_writable<long int>
114 {
116  enum
117  {
118  value = true
119  };
120 };
121 
123 template<>
124 struct is_csv_writable<unsigned long int>
125 {
127  enum
128  {
129  value = true
130  };
131 };
132 
134 template<>
135 struct is_csv_writable<bool>
136 {
138  enum
139  {
140  value = true
141  };
142 };
143 
144 
145 #endif /* OPENFPM_IO_SRC_CSVWRITER_IS_CSV_WRITABLE_HPP_ */
Indicate if the property T is writable in CSV.