Changeset 9771 in orxonox.OLD for branches/new_class_id/src/lib/util/loading/load_param_class_description.h
- Timestamp:
- Sep 19, 2006, 11:33:27 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/util/loading/load_param_class_description.h
r9768 r9771 23 23 24 24 #include "load_param_description.h" 25 #include "class_id.h" 26 #include <map> 25 27 #include <set> 26 27 28 // Forward Declaration // 28 29 class MultiType; … … 32 33 { 33 34 public: 34 LoadParamClassDescription(const std::string& className );35 LoadParamClassDescription(const std::string& className = ""); 35 36 ~LoadParamClassDescription(); 36 37 … … 39 40 bool operator<(const LoadParamClassDescription& classDescr) const { return this->_className < classDescr._className; } 40 41 42 43 static void describeClass(const ClassID& classID, 44 const std::string& paramName, 45 const std::string& descriptionText); 46 static void setValuesOf(const ClassID& classID, 47 const std::string& paramName, 48 unsigned int paramCount, 49 const MultiType* const defaultValues, 50 bool retVal = false); 51 41 52 static void deleteAllDescriptions(); 42 43 44 53 45 54 static void printAll(const std::string& fileName = ""); 46 55 47 56 private: 48 typedef std::set<LoadParamClassDescription> ClassDescriptionSet; 49 typedef std::set<LoadParamDescription> ParamDescriptionSet; 57 typedef std::map<ClassID, LoadParamClassDescription> ClassDescriptionMap; 58 typedef std::map<std::string, LoadParamDescription> ParamDescriptionMap; 59 60 private: 61 static ParamDescriptionMap::iterator getParamDescription(const ClassID& classID, const std::string& paramName); 62 63 private: 50 64 51 65 static bool _parametersDescription; //!< if parameter-description should be enabled globally. 52 66 53 static ClassDescription Set_classList; //!< a list, that stores all the loadable classes. (after one instance has been loaded)67 static ClassDescriptionMap _classList; //!< a list, that stores all the loadable classes. (after one instance has been loaded) 54 68 55 69 private: 56 70 std::string _className; //!< name of the class 57 ParamDescription Set _parameters;//!< List of parameters this class knows.71 ParamDescriptionMap _parameters; //!< List of parameters this class knows. 58 72 }; 59 73
Note: See TracChangeset
for help on using the changeset viewer.