Directory: | ./ |
---|---|
File: | build/tmp_project/PhoenixTypeStream/src/type_stream_get_type.cpp |
Date: | 2025-03-14 12:18:05 |
Exec | Total | Coverage | |
---|---|---|---|
Lines: | 24 | 24 | 100.0% |
Branches: | 12 | 12 | 100.0% |
Line | Branch | Exec | Source |
---|---|---|---|
1 | |||
2 | /*************************************** | ||
3 | Auteur : Pierre Aubert | ||
4 | Mail : pierre.aubert@lapp.in2p3.fr | ||
5 | Licence : CeCILL-C | ||
6 | ****************************************/ | ||
7 | |||
8 | |||
9 | #include "type_stream_get_type.h" | ||
10 | |||
11 | |||
12 | ///Get the corresponding string to describe char type | ||
13 | /** @return corresponding string to describe char type | ||
14 | */ | ||
15 | template<> | ||
16 | 1 | std::string phoenix_getTypeName<char>(){ | |
17 |
1/1✓ Branch 2 taken 1 times.
|
1 | return "char"; |
18 | } | ||
19 | |||
20 | |||
21 | |||
22 | ///Get the corresponding string to describe short type | ||
23 | /** @return corresponding string to describe short type | ||
24 | */ | ||
25 | template<> | ||
26 | 4 | std::string phoenix_getTypeName<short>(){ | |
27 |
1/1✓ Branch 2 taken 4 times.
|
4 | return "short"; |
28 | } | ||
29 | |||
30 | |||
31 | |||
32 | ///Get the corresponding string to describe int type | ||
33 | /** @return corresponding string to describe int type | ||
34 | */ | ||
35 | template<> | ||
36 | 30 | std::string phoenix_getTypeName<int>(){ | |
37 |
1/1✓ Branch 2 taken 30 times.
|
30 | return "int"; |
38 | } | ||
39 | |||
40 | |||
41 | |||
42 | ///Get the corresponding string to describe long type | ||
43 | /** @return corresponding string to describe long type | ||
44 | */ | ||
45 | template<> | ||
46 | 5 | std::string phoenix_getTypeName<long>(){ | |
47 |
1/1✓ Branch 2 taken 5 times.
|
5 | return "long"; |
48 | } | ||
49 | |||
50 | |||
51 | |||
52 | ///Get the corresponding string to describe unsigned char type | ||
53 | /** @return corresponding string to describe unsigned char type | ||
54 | */ | ||
55 | template<> | ||
56 | 1 | std::string phoenix_getTypeName<unsigned char>(){ | |
57 |
1/1✓ Branch 2 taken 1 times.
|
1 | return "unsigned char"; |
58 | } | ||
59 | |||
60 | |||
61 | |||
62 | ///Get the corresponding string to describe unsigned short type | ||
63 | /** @return corresponding string to describe unsigned short type | ||
64 | */ | ||
65 | template<> | ||
66 | 1 | std::string phoenix_getTypeName<unsigned short>(){ | |
67 |
1/1✓ Branch 2 taken 1 times.
|
1 | return "unsigned short"; |
68 | } | ||
69 | |||
70 | |||
71 | |||
72 | ///Get the corresponding string to describe unsigned int type | ||
73 | /** @return corresponding string to describe unsigned int type | ||
74 | */ | ||
75 | template<> | ||
76 | 1 | std::string phoenix_getTypeName<unsigned int>(){ | |
77 |
1/1✓ Branch 2 taken 1 times.
|
1 | return "unsigned int"; |
78 | } | ||
79 | |||
80 | |||
81 | |||
82 | ///Get the corresponding string to describe unsigned long type | ||
83 | /** @return corresponding string to describe unsigned long type | ||
84 | */ | ||
85 | template<> | ||
86 | 1 | std::string phoenix_getTypeName<unsigned long>(){ | |
87 |
1/1✓ Branch 2 taken 1 times.
|
1 | return "unsigned long"; |
88 | } | ||
89 | |||
90 | |||
91 | |||
92 | ///Get the corresponding string to describe bool type | ||
93 | /** @return corresponding string to describe bool type | ||
94 | */ | ||
95 | template<> | ||
96 | 1 | std::string phoenix_getTypeName<bool>(){ | |
97 |
1/1✓ Branch 2 taken 1 times.
|
1 | return "bool"; |
98 | } | ||
99 | |||
100 | |||
101 | |||
102 | ///Get the corresponding string to describe float type | ||
103 | /** @return corresponding string to describe float type | ||
104 | */ | ||
105 | template<> | ||
106 | 8 | std::string phoenix_getTypeName<float>(){ | |
107 |
1/1✓ Branch 2 taken 8 times.
|
8 | return "float"; |
108 | } | ||
109 | |||
110 | |||
111 | |||
112 | ///Get the corresponding string to describe double type | ||
113 | /** @return corresponding string to describe double type | ||
114 | */ | ||
115 | template<> | ||
116 | 2 | std::string phoenix_getTypeName<double>(){ | |
117 |
1/1✓ Branch 2 taken 2 times.
|
2 | return "double"; |
118 | } | ||
119 | |||
120 | |||
121 | |||
122 | ///Get the corresponding string to describe void type | ||
123 | /** @return corresponding string to describe void type | ||
124 | */ | ||
125 | template<> | ||
126 | 2 | std::string phoenix_getTypeName<void>(){ | |
127 |
1/1✓ Branch 2 taken 2 times.
|
2 | return "void"; |
128 | } | ||
129 | |||
130 | |||
131 | |||
132 | |||
133 |