Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 25, 2010, 1:04:55 PM (15 years ago)
Author:
landauf
Message:

progress on the new console command interface.
enhanced possibilities to compare Functors and to manipulate Executors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/consolecommands3/src/libraries/core/command/Functor.h

    r7213 r7214  
    111111            virtual const std::type_info& getFullIdentifier() const = 0;
    112112            virtual const std::type_info& getHeaderIdentifier() const = 0;
     113            virtual const std::type_info& getHeaderIdentifier(unsigned int params) const = 0;
    113114    };
    114115
     
    294295                switch (param)
    295296                {
    296                     case 0: return typeToString<P1>();
    297                     case 1: return typeToString<P2>();
    298                     case 2: return typeToString<P3>();
    299                     case 3: return typeToString<P4>();
    300                     case 4: return typeToString<P5>();
     297                    case 0:  return typeToString<P1>();
     298                    case 1:  return typeToString<P2>();
     299                    case 2:  return typeToString<P3>();
     300                    case 3:  return typeToString<P4>();
     301                    case 4:  return typeToString<P5>();
    301302                    default: return "";
    302303                }
     
    311312            {
    312313                return typeid(detail::FunctorHeaderIdentifier<R, P1, P2, P3, P4, P5>);
     314            }
     315
     316            const std::type_info& getHeaderIdentifier(unsigned int params) const
     317            {
     318                switch (params)
     319                {
     320                    case 0:  return typeid(detail::FunctorHeaderIdentifier<R, void, void, void, void, void>);
     321                    case 1:  return typeid(detail::FunctorHeaderIdentifier<R, P1, void, void, void, void>);
     322                    case 2:  return typeid(detail::FunctorHeaderIdentifier<R, P1, P2, void, void, void>);
     323                    case 3:  return typeid(detail::FunctorHeaderIdentifier<R, P1, P2, P3, void, void>);
     324                    case 4:  return typeid(detail::FunctorHeaderIdentifier<R, P1, P2, P3, P4, void>);
     325                    default: return typeid(detail::FunctorHeaderIdentifier<R, P1, P2, P3, P4, P5>);
     326                }
    313327            }
    314328    };
Note: See TracChangeset for help on using the changeset viewer.