PhoenixTypeStream
1.4.0
Unified C++ type-to-string conversion framework
Toggle main menu visibility
Loading...
Searching...
No Matches
phoenix_composeType_impl.h
Go to the documentation of this file.
1
/***************************************
2
Auteur : Pierre Aubert
3
Mail : pierre.aubert@lapp.in2p3.fr
4
Licence : CeCILL-C
5
****************************************/
6
7
#ifndef __PHOENIX_COMPOSETYPE_IMPL_H__
8
#define __PHOENIX_COMPOSETYPE_IMPL_H__
9
10
#include "
phoenix_composeType.h
"
11
13
15
template
<
typename
T>
16
std::string
phoenix_getTypeToStr
(){
17
return
TypeStream<T >::getTypeToStr
();
18
}
19
21
24
template
<
typename
T>
25
std::string
phoenix_getTypeToStr
(
const
T & data){
26
return
phoenix_getTypeToStr<T>
();
27
}
28
30
33
template
<
typename
R,
typename
... T>
34
std::string
phoenix_getTypeToStr
(R (*func)(T...)){
35
return
phoenix_getTypeToStr<R>
() +
" | "
+
TypeStream
<std::tuple<T... > >::getTypeToStr();
36
}
37
38
39
#endif
phoenix_composeType.h
phoenix_getTypeToStr
std::string phoenix_getTypeToStr()
Get the corresponding type of a string.
Definition
phoenix_composeType_impl.h:16
TypeStream
Generic DataStream class.
Definition
phoenix_composeType.h:21
TypeStream::getTypeToStr
static std::string getTypeToStr()
Convert the generic type into a string.
Definition
phoenix_composeType.h:25
src
phoenix_composeType_impl.h
Generated by
1.17.0