Changeset 5652 in orxonox.OLD for trunk/src/lib/util/executor
- Timestamp:
- Nov 20, 2005, 6:32:39 PM (19 years ago)
- Location:
- trunk/src/lib/util/executor
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/util/executor/executor.h
r5642 r5652 21 21 //! an enumerator for the definition of the Type. 22 22 typedef enum { 23 Executor_Objective = 1, 24 Executor_Static = 2, 23 Executor_Objective = 0x00000001, 24 Executor_Static = 0x00000002, 25 26 Executor_NoLoadString = 0x00000010, 25 27 } Executor_Type; 26 28 … … 43 45 44 46 /** @returns the Type of this Function (either static or objective) */ 45 inline Executor_TypegetType() const { return this->functorType; };47 inline long getType() const { return this->functorType; }; 46 48 /** @returns the Count of Parameters this Executor takes */ 47 49 inline unsigned int getParamCount() const { return this->paramCount; }; … … 56 58 57 59 protected: 58 Executor_TypefunctorType; //!< The type of Function we've got (either static or objective).59 unsigned int 60 MultiType* 60 long functorType; //!< The type of Function we've got (either static or objective). 61 unsigned int paramCount; //!< the count of parameters. 62 MultiType* defaultValue; //!< Default Values. 61 63 }; 62 64 … … 196 198 #define ExecutorExecute4(t1,t2,t3,t4) \ 197 199 else if (this->paramCount == 4 && this->defaultValue[0].getType() == t1##_PARAM && this->defaultValue[1].getType() == t2##_PARAM && this->defaultValue[2].getType() == t3##_PARAM && this->defaultValue[3].getType() == t4##_PARAM) \ 198 EXECUTOREXECUTER(_4_##t1##_##t2##_##t3##_##t4)(t1##_FUNC(sub.getString(0), t1##_DEFGRAB(0)), t2##_FUNC(sub.getString(1), t2##_DEFGRAB(1)), t3##_FUNC(sub.getString(2), t3##_DEFGRAB(2)), t4##_FUNC(sub.getString(3), t4##_DEFGRAB(3))) 200 EXECUTOREXECUTER(_4_##t1##_##t2##_##t3##_##t4)(t1##_FUNC(sub.getString(0), t1##_DEFGRAB(0)), t2##_FUNC(sub.getString(1), t2##_DEFGRAB(1)), t3##_FUNC(sub.getString(2), t3##_DEFGRAB(2)), t4##_FUNC(sub.getString(3), t4##_DEFGRAB(3))) \ 201 199 202 200 203 //! execute-macro for functions with five parameters … … 258 261 virtual void execute (BaseObject* object, const char* parameters) 259 262 { 260 SubString sub(parameters, true);263 SubString sub(parameters, ','); /// FIXME /// 261 264 //! FUNCTOR_LIST is the List of Executive Functions 262 265 #define FUNCTOR_LIST(x) ExecutorExecute ## x -
trunk/src/lib/util/executor/executor_specials.h
r5651 r5652 38 38 39 39 this->functionPointer = function; 40 this->functorType = Executor_Objective | Executor_NoLoadString; 40 41 } 41 42 … … 66 67 private: 67 68 /** 68 * used for the copy- constructor69 * used for the copy-(Clone)-constructor 69 70 */ 70 71 ExecutorXML() : Executor() { };
Note: See TracChangeset
for help on using the changeset viewer.