Changeset 5645 in orxonox.OLD for trunk/src/util/loading/load_param.cc
- Timestamp:
- Nov 19, 2005, 9:48:38 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/loading/load_param.cc
r5634 r5645 35 35 { 36 36 this->setClassID(CL_LOAD_PARAM, "LoadParam"); 37 this->executor = NULL; 37 38 38 39 this->loadString = NULL; … … 106 107 } 107 108 109 LoadParamBase::LoadParamBase(const TiXmlElement* root, const char* paramName, BaseObject* object, const Executor& executor) 110 { 111 this->loadString = grabParameter(root, paramName); 112 113 if (loadString != NULL && root != NULL) 114 { 115 this->executor = executor.clone(); 116 this->executor->execute(object, loadString); 117 } 118 else 119 { 120 this->executor = NULL; 121 } 122 } 123 LoadParamBase::~LoadParamBase() 124 { 125 if (likely(this->executor != NULL)) 126 delete this->executor; 127 128 } 129 130 131 108 132 /** 109 133 * @param descriptionText The text to set as a description for this Parameter
Note: See TracChangeset
for help on using the changeset viewer.