Changeset 1723 for code/branches
- Timestamp:
- Sep 6, 2008, 9:22:51 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core3/src/util/Convert.h
r1720 r1723 97 97 98 98 // Defines the levels of all types: Default is __high__ so you don't have to define every high-level type 99 template <class T> struct ConverterLevel { enum { level = __high__ }; }; 100 template <> struct ConverterLevel<std::string> { enum { level = __mid__ }; }; 101 template <> struct ConverterLevel<orxonox::Radian> { enum { level = __mid__ }; }; 102 template <> struct ConverterLevel<orxonox::Degree> { enum { level = __mid__ }; }; 103 template <> struct ConverterLevel<int> { enum { level = __low__ }; }; 104 template <> struct ConverterLevel<unsigned int> { enum { level = __low__ }; }; 105 template <> struct ConverterLevel<char> { enum { level = __low__ }; }; 106 template <> struct ConverterLevel<unsigned char> { enum { level = __low__ }; }; 107 template <> struct ConverterLevel<short> { enum { level = __low__ }; }; 108 template <> struct ConverterLevel<unsigned short> { enum { level = __low__ }; }; 109 template <> struct ConverterLevel<long> { enum { level = __low__ }; }; 110 template <> struct ConverterLevel<unsigned long> { enum { level = __low__ }; }; 111 template <> struct ConverterLevel<float> { enum { level = __low__ }; }; 112 template <> struct ConverterLevel<double> { enum { level = __low__ }; }; 113 template <> struct ConverterLevel<long double> { enum { level = __low__ }; }; 114 template <> struct ConverterLevel<bool> { enum { level = __low__ }; }; 99 template <class T> struct ConverterLevel { enum { level = __high__ }; }; 100 template <> struct ConverterLevel<std::string> { enum { level = __mid__ }; }; 101 template <> struct ConverterLevel<orxonox::Radian> { enum { level = __mid__ }; }; 102 template <> struct ConverterLevel<orxonox::Degree> { enum { level = __mid__ }; }; 103 template <> struct ConverterLevel<int> { enum { level = __low__ }; }; 104 template <> struct ConverterLevel<unsigned int> { enum { level = __low__ }; }; 105 template <> struct ConverterLevel<char> { enum { level = __low__ }; }; 106 template <> struct ConverterLevel<unsigned char> { enum { level = __low__ }; }; 107 template <> struct ConverterLevel<short> { enum { level = __low__ }; }; 108 template <> struct ConverterLevel<unsigned short> { enum { level = __low__ }; }; 109 template <> struct ConverterLevel<long> { enum { level = __low__ }; }; 110 template <> struct ConverterLevel<unsigned long> { enum { level = __low__ }; }; 111 template <> struct ConverterLevel<long long> { enum { level = __low__ }; }; 112 template <> struct ConverterLevel<unsigned long long> { enum { level = __low__ }; }; 113 template <> struct ConverterLevel<float> { enum { level = __low__ }; }; 114 template <> struct ConverterLevel<double> { enum { level = __low__ }; }; 115 template <> struct ConverterLevel<long double> { enum { level = __low__ }; }; 116 template <> struct ConverterLevel<bool> { enum { level = __low__ }; }; 115 117 116 118
Note: See TracChangeset
for help on using the changeset viewer.