Changeset 7721 in orxonox.OLD for trunk/src/lib/util/loading
- Timestamp:
- May 19, 2006, 4:05:41 AM (19 years ago)
- Location:
- trunk/src/lib/util/loading
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/util/loading/load_param.cc
r7474 r7721 28 28 * @param executor the Executor, that executes the loading procedure. 29 29 */ 30 CLoadParam::CLoadParam(const TiXmlElement* root, const std::string& paramName, BaseObject* object, const Executor&executor, bool inLoadCycle)30 CLoadParam::CLoadParam(const TiXmlElement* root, const std::string& paramName, BaseObject* object, Executor* executor, bool inLoadCycle) 31 31 : paramName(paramName), object(object) 32 32 { … … 43 43 44 44 // set the Executor. 45 this->executor = executor .clone();45 this->executor = executor; 46 46 47 47 //if (this->executor) -
trunk/src/lib/util/loading/load_param.h
r7221 r7721 25 25 26 26 #include "executor/executor.h" 27 28 /// HACK HACK TAKE THIS INTO THE EXECUTOR 29 #include "executor/executor_functional.h" 30 #define EXECUTOR_FUNCTIONAL_USE_STATIC 31 #include "executor/executor_functional.h" 32 27 33 #include "executor/executor_specials.h" 28 34 … … 45 51 */ 46 52 #define LoadParam(ROOT, PARAMETER_NAME, OBJECT, CLASS, FUNCTION) \ 47 CLoadParam(ROOT, PARAMETER_NAME, OBJECT, ExecutorObjective<CLASS>(&CLASS::FUNCTION), false)53 CLoadParam(ROOT, PARAMETER_NAME, OBJECT, createExecutor<CLASS>(&CLASS::FUNCTION), false) 48 54 49 55 #define LoadParam_CYCLE(ROOT, PARAMETER_NAME, OBJECT, CLASS, FUNCTION) \ 50 CLoadParam(ROOT, PARAMETER_NAME, OBJECT, ExecutorObjective<CLASS>(&CLASS::FUNCTION), true)56 CLoadParam(ROOT, PARAMETER_NAME, OBJECT, createExecutor<CLASS>(&CLASS::FUNCTION), true) 51 57 52 58 #define LoadParamXML(ROOT, PARAMETER_NAME, OBJECT, CLASS, FUNCTION) \ 53 CLoadParam(ROOT, PARAMETER_NAME, OBJECT, ExecutorXML<CLASS>(&CLASS::FUNCTION, ROOT, PARAMETER_NAME), false)59 CLoadParam(ROOT, PARAMETER_NAME, OBJECT, new ExecutorXML<CLASS>(&CLASS::FUNCTION, ROOT, PARAMETER_NAME), false) 54 60 55 61 #define LoadParamXML_CYCLE(ROOT, PARAMETER_NAME, OBJECT, CLASS, FUNCTION) \ 56 CLoadParam(ROOT, PARAMETER_NAME, OBJECT, ExecutorXML<CLASS>(&CLASS::FUNCTION, ROOT, PARAMETER_NAME), true)62 CLoadParam(ROOT, PARAMETER_NAME, OBJECT, new ExecutorXML<CLASS>(&CLASS::FUNCTION, ROOT, PARAMETER_NAME), true) 57 63 58 64 … … 87 93 { 88 94 public: 89 CLoadParam(const TiXmlElement* root, const std::string& paramName, BaseObject* object, const Executor&executor, bool inLoadCycle = false);95 CLoadParam(const TiXmlElement* root, const std::string& paramName, BaseObject* object, Executor* executor, bool inLoadCycle = false); 90 96 virtual ~CLoadParam(); 91 97
Note: See TracChangeset
for help on using the changeset viewer.