Changeset 9763 in orxonox.OLD for branches/new_class_id/src/lib/util/loading/load_param.h
- Timestamp:
- Sep 19, 2006, 5:18:04 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/util/loading/load_param.h
r9742 r9763 37 37 /** 38 38 * Loads a Parameter from ROOT named PARAMETER_NAME 39 * onto OBJECT of CLASS, trough theFUNCTION39 * onto OBJECT of CLASS, trough FUNCTION 40 40 * @param ROOT the TiXmlElement to load the Parameter from 41 41 * @param PARAMETER_NAME the Name of the Parameter to load … … 47 47 CLoadParam(ROOT, PARAMETER_NAME, OBJECT, createExecutor<CLASS>(&CLASS::FUNCTION), false) 48 48 49 /** 50 * @brief Does essentially the same as LoadParam, but within a Cycle in an ordered fashion. 51 * 52 * This Function looks in each Element, if the PARAMETER_NAME matches, and loads onto OBJECT 53 * of CLASS the ROOT through FUNCTION 54 * 55 * @see LoadParam(ROOT, PARAMETER_NAME, OBJECT, CLASS, FUNCTION) 56 */ 49 57 #define LoadParam_CYCLE(ROOT, PARAMETER_NAME, OBJECT, CLASS, FUNCTION) \ 50 58 CLoadParam(ROOT, PARAMETER_NAME, OBJECT, createExecutor<CLASS>(&CLASS::FUNCTION), true) … … 77 85 **** REAL DECLARATIONS **** 78 86 **************************/ 79 class LoadParamBase : public BaseObject 87 //!< A BaseClass for all LoadParam's. 88 class LoadParamBase 80 89 { 81 90 protected: … … 86 95 87 96 protected: 88 BaseObject* object; 89 const std::string paramName; 90 bool inLoadCycle; 97 BaseObject* object; //!< The Object to work on 98 const std::string paramName; //!< The Name of the Parameter this LoadParams applies to. 99 bool inLoadCycle; //!< If the Parameter is in a LoadCycle. 91 100 92 101 LoadClassDescription* classDesc; //!< The LoadClassDescription of this CLoadParameter … … 96 105 97 106 98 //! abstract Base class for a Loadable parameter107 //! The Loading Class of the LoadParam, that acctually executes the loading process. 99 108 class CLoadParam : public LoadParamBase 100 109 { … … 111 120 112 121 private: 113 Executor<const SubString>* executor; 122 Executor<const SubString>* executor; //!< The Executor, that actually executes the Loading process. 114 123 }; 115 124
Note: See TracChangeset
for help on using the changeset viewer.