Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1723


Ignore:
Timestamp:
Sep 6, 2008, 9:22:51 PM (16 years ago)
Author:
rgrieder
Message:

Added types long long and unsigned long long to Convert.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core3/src/util/Convert.h

    r1720 r1723  
    9797
    9898// 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__ }; };
     99template <class T> struct ConverterLevel              { enum { level = __high__ }; };
     100template <> struct ConverterLevel<std::string>        { enum { level = __mid__ }; };
     101template <> struct ConverterLevel<orxonox::Radian>    { enum { level = __mid__ }; };
     102template <> struct ConverterLevel<orxonox::Degree>    { enum { level = __mid__ }; };
     103template <> struct ConverterLevel<int>                { enum { level = __low__ }; };
     104template <> struct ConverterLevel<unsigned int>       { enum { level = __low__ }; };
     105template <> struct ConverterLevel<char>               { enum { level = __low__ }; };
     106template <> struct ConverterLevel<unsigned char>      { enum { level = __low__ }; };
     107template <> struct ConverterLevel<short>              { enum { level = __low__ }; };
     108template <> struct ConverterLevel<unsigned short>     { enum { level = __low__ }; };
     109template <> struct ConverterLevel<long>               { enum { level = __low__ }; };
     110template <> struct ConverterLevel<unsigned long>      { enum { level = __low__ }; };
     111template <> struct ConverterLevel<long long>          { enum { level = __low__ }; };
     112template <> struct ConverterLevel<unsigned long long> { enum { level = __low__ }; };
     113template <> struct ConverterLevel<float>              { enum { level = __low__ }; };
     114template <> struct ConverterLevel<double>             { enum { level = __low__ }; };
     115template <> struct ConverterLevel<long double>        { enum { level = __low__ }; };
     116template <> struct ConverterLevel<bool>               { enum { level = __low__ }; };
    115117
    116118
Note: See TracChangeset for help on using the changeset viewer.