Changeset 9776 in orxonox.OLD for branches/new_class_id/src
- Timestamp:
- Sep 20, 2006, 12:17:44 AM (18 years ago)
- Location:
- branches/new_class_id/src/lib/util/loading
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/util/loading/load_param.cc
r9775 r9776 24 24 * @param root the XML-element to load this Parameter from 25 25 * @param paramName the Parameter to load 26 * @param object the BaseObject, to load this parameter on to (will be cast to executor's Parameter)27 26 * @param inLoadCycle If we are in a LoadCycle (loading differs.). 28 27 */ … … 41 40 42 41 /** 42 * @param classID the ID of the class. This is needed to identify into what class this Parameter belongs. 43 43 * @param descriptionText The text to set as a description for this Parameter 44 44 * @returns a pointer to itself. -
branches/new_class_id/src/lib/util/loading/load_param.h
r9771 r9776 150 150 const MultiType& value4 = MT_NULL) 151 151 { this->executor->defaultValues(value0, value1, value2, value3, value4); return *this; }; 152 //! Describes a LoadParam 152 153 CLoadParam& describe(const std::string& descriptionText) { LoadParamBase::describe(OperateClass::staticClassID(), descriptionText); return *this; }; 153 154 // CLoadParam& attribute(const std::string& attributeName, const Executor<SubString>& executor); … … 155 156 private: 156 157 Executor<const SubString, OperateClass>* executor; //!< The Executor, that actually executes the Loading process. 157 OperateClass* object; 158 OperateClass* object; //!< The Object this LoadParam operates on. 158 159 }; 159 160 -
branches/new_class_id/src/lib/util/loading/load_param_class_description.cc
r9775 r9776 36 36 { } 37 37 38 38 39 /** 39 * deletes a classDescription (deletes all the parameterDescriptions as well40 * @brief clears all LoadParamDescriptions. 40 41 */ 41 LoadParamClassDescription::~LoadParamClassDescription()42 {}43 44 42 void LoadParamClassDescription::deleteAllDescriptions() 45 43 { … … 48 46 49 47 50 48 /** 49 * @brief describes a LoadParam-parameter. 50 * @param classID the ID of the class. 51 * @param paramName the Name of the Parameter. 52 * @param descriptionText the Test to set. 53 */ 51 54 void LoadParamClassDescription::describeClass(const ClassID& classID, 52 55 const std::string& paramName, … … 58 61 } 59 62 60 63 /** 64 * @brief sets Values of the specified LoadParam-parameter. 65 * @param classID the ID of the class. 66 * @param paramName the name of the Parameter. 67 * @param paramCount the count of Parameters this LoadParam takes. 68 * @param defaultValues the default Values. 69 * @param retVal if the Parameter takes return Values. 70 */ 61 71 void LoadParamClassDescription::setValuesOf(const ClassID& classID, 62 72 const std::string& paramName, -
branches/new_class_id/src/lib/util/loading/load_param_class_description.h
r9775 r9776 34 34 public: 35 35 LoadParamClassDescription(const std::string& className = ""); 36 ~LoadParamClassDescription();37 36 37 //! Compares a LoadParamClassDescription with a String. 38 38 bool operator==(const std::string& className) const { return this->_className == className; }; 39 //! Compares two LoadParamClassDescription with each other 39 40 bool operator==(const LoadParamClassDescription& classDescr) const { return this->_className == classDescr._className; }; 41 //! Compares two LoadParamClassDescription with each other, using the less operator 40 42 bool operator<(const LoadParamClassDescription& classDescr) const { return this->_className < classDescr._className; } 41 43 … … 50 52 bool retVal = false); 51 53 52 54 /** @param createThem: if the Parameters should be created/stored. */ 53 55 static void createDescriptions(bool createThem) { _createParametersDescription = createThem; }; 56 /** @returns if the Parameters are created/stored. */ 54 57 static bool createsDescriptions() { return _createParametersDescription; }; 55 58 … … 59 62 60 63 private: 64 //! A Type definition for the Map of Class Descriptions 61 65 typedef std::map<ClassID, LoadParamClassDescription> ClassDescriptionMap; 66 //! A type definition for the Map of Parameter Descriptions inside of Class-descriptions. 62 67 typedef std::map<std::string, LoadParamDescription> ParamDescriptionMap; 63 68 -
branches/new_class_id/src/lib/util/loading/load_param_description.cc
r9775 r9776 20 20 21 21 /** 22 * @brief Creates a Description of a LoadParam 22 23 * @param paramName the name of the parameter to load 23 24 */ … … 25 26 : _name(paramName), _parameterCount(0) 26 27 { } 27 28 /**29 * removes all the alocated memory30 */31 LoadParamDescription::~LoadParamDescription()32 {}33 28 34 29 /** … … 40 35 } 41 36 37 /** 38 * @brief sets the Values of the LoadParam in the Description. 39 * @param paramCount the count of arguments the underlying paramDescription takes. 40 * @param defaultValues the default Values the underlying parameter takes. 41 * @param retVal if the underlying parameter has a return value 42 */ 42 43 void LoadParamDescription::setValues(unsigned int paramCount, 43 44 const MultiType* const defaultValues, -
branches/new_class_id/src/lib/util/loading/load_param_description.h
r9772 r9776 36 36 public: 37 37 LoadParamDescription(const std::string& paramName = ""); 38 ~LoadParamDescription();39 38 39 //! Compares a LoadParamDescription with a String. 40 40 bool operator==(const std::string& paramName) const { return this->_name == paramName; }; 41 //! Compares two LoadParamDescription 41 42 bool operator==(const LoadParamDescription& paramDescr) const { return this->_name == paramDescr._name; }; 43 //! Compares two LoadParamDescription with the less operator 42 44 bool operator<(const LoadParamDescription& paramDescr) const { return this->_name < paramDescr._name; }; 43 45 … … 56 58 std::string _description; //!< A longer description about this function. 57 59 58 std::vector<std::string> _types; 59 std::vector<std::string> _defaultValues; 60 std::vector<std::string> _types; //!< A Vector of types of this Parameter. 61 std::vector<std::string> _defaultValues; //!< A Vector of defaultValues of this Parameter. 60 62 }; 61 63
Note: See TracChangeset
for help on using the changeset viewer.