Changeset 5671 in orxonox.OLD for trunk/src/util/loading
- Timestamp:
- Nov 21, 2005, 3:50:41 PM (19 years ago)
- Location:
- trunk/src/util/loading
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/loading/load_param.cc
r5655 r5671 32 32 * @param executor the Executor, that executes the loading procedure. 33 33 */ 34 LoadParam::LoadParam(const TiXmlElement* root, const char* paramName, BaseObject* object, const Executor& executor, bool inLoadCycle)34 CLoadParam::CLoadParam(const TiXmlElement* root, const char* paramName, BaseObject* object, const Executor& executor, bool inLoadCycle) 35 35 { 36 36 this->paramName = paramName; … … 63 63 * Execution-Conditions are met, they are executed here. 64 64 */ 65 LoadParam::~LoadParam()65 CLoadParam::~CLoadParam() 66 66 { 67 67 if (likely(this->executor != NULL)) … … 84 84 * @param ... the default values !! must be at least count parameters!! 85 85 */ 86 LoadParam*LoadParam::defaultValues(unsigned int count, ...)86 CLoadParam* CLoadParam::defaultValues(unsigned int count, ...) 87 87 { 88 88 if (this == NULL) … … 104 104 * @returns a pointer to itself. 105 105 */ 106 LoadParam*LoadParam::describe(const char* descriptionText)106 CLoadParam* CLoadParam::describe(const char* descriptionText) 107 107 { 108 108 if (LoadClassDescription::parametersDescription && this->paramDesc && !this->paramDesc->getDescription()) -
trunk/src/util/loading/load_param.h
r5655 r5671 45 45 * @param FUNCTION The function of Class to Load (if you want to call &CLASS::FUNCTION write FUNCTION here). 46 46 */ 47 #define LoadParam NEW(ROOT, PARAMETER_NAME, OBJECT, CLASS, FUNCTION) \48 LoadParam(ROOT, PARAMETER_NAME, OBJECT, ExecutorObjective<CLASS>(&CLASS::FUNCTION), false)47 #define LoadParam(ROOT, PARAMETER_NAME, OBJECT, CLASS, FUNCTION) \ 48 CLoadParam(ROOT, PARAMETER_NAME, OBJECT, ExecutorObjective<CLASS>(&CLASS::FUNCTION), false) 49 49 50 50 #define LoadParam_CYCLE(ROOT, PARAMETER_NAME, OBJECT, CLASS, FUNCTION) \ 51 LoadParam(ROOT, PARAMETER_NAME, OBJECT, ExecutorObjective<CLASS>(&CLASS::FUNCTION), true)51 CLoadParam(ROOT, PARAMETER_NAME, OBJECT, ExecutorObjective<CLASS>(&CLASS::FUNCTION), true) 52 52 53 53 #define LoadParamXML(ROOT, PARAMETER_NAME, OBJECT, CLASS, FUNCTION) \ 54 LoadParam(ROOT, PARAMETER_NAME, OBJECT, ExecutorXML<CLASS>(&CLASS::FUNCTION, ROOT, PARAMETER_NAME), false)54 CLoadParam(ROOT, PARAMETER_NAME, OBJECT, ExecutorXML<CLASS>(&CLASS::FUNCTION, ROOT, PARAMETER_NAME), false) 55 55 56 56 #define LoadParamXML_CYCLE(ROOT, PARAMETER_NAME, OBJECT, CLASS, FUNCTION) \ 57 LoadParam(ROOT, PARAMETER_NAME, OBJECT, ExecutorXML<CLASS>(&CLASS::FUNCTION, ROOT, PARAMETER_NAME), true)57 CLoadParam(ROOT, PARAMETER_NAME, OBJECT, ExecutorXML<CLASS>(&CLASS::FUNCTION, ROOT, PARAMETER_NAME), true) 58 58 59 59 … … 85 85 **************************/ 86 86 //! abstract Base class for a Loadable parameter 87 class LoadParam : public BaseObject87 class CLoadParam : public BaseObject 88 88 { 89 89 public: 90 LoadParam(const TiXmlElement* root, const char* paramName, BaseObject* object, const Executor& executor, bool inLoadCycle = false);91 ~ LoadParam();90 CLoadParam(const TiXmlElement* root, const char* paramName, BaseObject* object, const Executor& executor, bool inLoadCycle = false); 91 ~CLoadParam(); 92 92 93 LoadParam* describe(const char* descriptionText);94 LoadParam* defaultValues(unsigned int count, ...);93 CLoadParam* describe(const char* descriptionText); 94 CLoadParam* defaultValues(unsigned int count, ...); 95 95 96 96 … … 101 101 const char* paramName; 102 102 103 LoadClassDescription* classDesc; //!< The LoadClassDescription of this LoadParameter103 LoadClassDescription* classDesc; //!< The LoadClassDescription of this CLoadParameter 104 104 LoadParamDescription* paramDesc; //!< The LoadParameterDescription of this LoadParameter 105 105 const char* loadString; //!< The string loaded by this LoadParam -
trunk/src/util/loading/load_param_description.h
r5655 r5671 56 56 class LoadClassDescription 57 57 { 58 friend class LoadParam;58 friend class CLoadParam; 59 59 public: 60 60 LoadClassDescription(const char* className);
Note: See TracChangeset
for help on using the changeset viewer.