Changeset 9924 in orxonox.OLD for branches/network/src/lib/lang/object_list.h
- Timestamp:
- Nov 9, 2006, 7:16:15 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/lang/object_list.h
r9909 r9924 32 32 * @brief Use this macro to easily define a Class to store its own ObjectListDefinition 33 33 * @param ClassName: the Name of the Class. 34 * @param ID: optional set a Fixed ID.35 */36 #define ObjectListDefinitionID(ClassName, ID) \37 ObjectList<ClassName> ClassName::_objectList(#ClassName, ID)38 39 /**40 * @brief Use this macro to easily define a Class to store its own ObjectListDefinition41 * @param ClassName: the Name of the Class.42 34 */ 43 35 #define ObjectListDefinition(ClassName) \ 44 ObjectList DefinitionID(ClassName, -1)36 ObjectList<ClassName> ClassName::_objectList(#ClassName) 45 37 46 38 class BaseObject; … … 109 101 110 102 protected: 111 ObjectListBase(const std::string& className , int id = -1);103 ObjectListBase(const std::string& className); 112 104 virtual ~ObjectListBase(); 113 105 … … 133 125 static NameMap* _classesByName; //!< A Map of all the classes in existance. 134 126 static std::list<std::string> _classNames; //!< A list of all the registered ClassNames. 135 127 136 128 public: 137 129 static void replaceIDMap( const std::map<std::string, int>& str2id ); … … 203 195 204 196 public: 205 ObjectList(const std::string& name , int id = -1);197 ObjectList(const std::string& name); 206 198 ~ObjectList(); 207 199 … … 260 252 */ 261 253 template <class T> 262 ObjectList<T>::ObjectList(const std::string& name , int id)263 : ObjectListBase(name , id)254 ObjectList<T>::ObjectList(const std::string& name) 255 : ObjectListBase(name) 264 256 {} 265 257
Note: See TracChangeset
for help on using the changeset viewer.