OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
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
13template<typename T>
15{
17 enum
18 {
19 value = false
20 };
21};
22
24template<>
25struct is_csv_writable<float>
26{
28 enum
29 {
30 value = true
31 };
32};
33
35template<>
36struct is_csv_writable<double>
37{
39 enum
40 {
41 value = true
42 };
43};
44
46template<>
47struct is_csv_writable<char>
48{
50 enum
51 {
52 value = true
53 };
54};
55
57template<>
58struct is_csv_writable<unsigned char>
59{
61 enum
62 {
63 value = true
64 };
65};
66
68template<>
69struct is_csv_writable<short>
70{
72 enum
73 {
74 value = true
75 };
76};
77
79template<>
80struct is_csv_writable<unsigned short>
81{
83 enum
84 {
85 value = true
86 };
87};
88
90template<>
91struct is_csv_writable<int>
92{
94 enum
95 {
96 value = true
97 };
98};
99
101template<>
102struct is_csv_writable<unsigned int>
103{
105 enum
106 {
107 value = true
108 };
109};
110
112template<>
113struct is_csv_writable<long int>
114{
116 enum
117 {
118 value = true
119 };
120};
121
123template<>
124struct is_csv_writable<unsigned long int>
125{
127 enum
128 {
129 value = true
130 };
131};
132
134template<>
135struct is_csv_writable<bool>
136{
138 enum
139 {
140 value = true
141 };
142};
143
145template<typename T, unsigned int N1>
146struct is_csv_writable<T[N1]>
147{
149 enum
150 {
151 value = true
152 };
153};
154
156template<typename T, unsigned int N1, unsigned int N2>
157struct is_csv_writable<T[N1][N2]>
158{
160 enum
161 {
162 value = true
163 };
164};
165
167template<typename T, unsigned int N1, unsigned int N2, unsigned int N3>
168struct is_csv_writable<T[N1][N2][N3]>
169{
171 enum
172 {
173 value = true
174 };
175};
176
177#endif /* OPENFPM_IO_SRC_CSVWRITER_IS_CSV_WRITABLE_HPP_ */
Indicate if the property T is writable in CSV.