Changeset 9752 in orxonox.OLD for branches/new_class_id/src/lib/util/executor/executor.h
- Timestamp:
- Sep 17, 2006, 2:43:41 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/util/executor/executor.h
r9748 r9752 17 17 18 18 /** @returns the Type of an Argument taken by the Executor */ 19 template<typename type> MT_Type ExecutorParamType() { return MT_EXT1; }; 20 template<> MT_Type ExecutorParamType<bool>(); 21 template<> MT_Type ExecutorParamType<int>(); 22 template<> MT_Type ExecutorParamType<unsigned int>(); 23 template<> MT_Type ExecutorParamType<float>(); 24 template<> MT_Type ExecutorParamType<char>(); 25 template<> MT_Type ExecutorParamType<const std::string&>(); 19 template<typename type> inline MT_Type ExecutorParamType() { return MT_EXT1; }; 20 /** @returns the Type of an Argument taken by the Executor in this case MT_BOOL */ 21 template<> inline MT_Type ExecutorParamType<bool>() { return MT_BOOL; }; 22 /** @returns the Type of an Argument taken by the Executor in this case MT_INT*/ 23 template<> inline MT_Type ExecutorParamType<int>() { return MT_INT; }; 24 /** @returns the Type of an Argument taken by the Executor in this case MT_UINT*/ 25 template<> inline MT_Type ExecutorParamType<unsigned int>() { return MT_UINT; }; 26 /** @returns the Type of an Argument taken by the Executor in this case MT_FLOAT*/ 27 template<> inline MT_Type ExecutorParamType<float>() { return MT_FLOAT; }; 28 /** @returns the Type of an Argument taken by the Executor in this case MT_CHAR*/ 29 template<> inline MT_Type ExecutorParamType<char>() { return MT_CHAR; }; 30 /** @returns the Type of an Argument taken by the Executor in this case MT_STRING*/ 31 template<> inline MT_Type ExecutorParamType<const std::string&>() { return MT_STRING; }; 26 32 27 33 ////////////////
Note: See TracChangeset
for help on using the changeset viewer.