Changeset 5103 in orxonox.OLD for trunk/src/lib/lang/class_list.h
- Timestamp:
- Aug 22, 2005, 6:08:15 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/lang/class_list.h
r5102 r5103 35 35 36 36 // STATIC FUNCTIONS 37 static void addToClassList(BaseObject* objectPointer, const long& classID, const char* className);38 static void removeFromClassList(BaseObject* objectPointer);37 static void addToClassList(BaseObject* objectPointer, const long& classID, const char* className); 38 static void removeFromClassList(BaseObject* objectPointer); 39 39 40 static tList<BaseObject>* getList(long classID = CL_NULL); 41 static tList<BaseObject>* getList(const char* className); 42 static BaseObject* getObject(const char* name, long classID = CL_NULL); 43 static bool exists(const BaseObject* object, long classID = CL_NULL); 40 static tList<BaseObject>* getList(long classID = CL_NULL); 41 static tList<BaseObject>* getList(const char* className); 42 static const tList<const char>* getClassList(); 43 static BaseObject* getObject(const char* name, long classID = CL_NULL); 44 static bool exists(const BaseObject* object, long classID = CL_NULL); 44 45 45 static void whatIs(const BaseObject* object);46 static void debug(unsigned int debugLevel = 0, long classID = CL_NULL);46 static void whatIs(const BaseObject* object); 47 static void debug(unsigned int debugLevel = 0, long classID = CL_NULL); 47 48 48 49 private: 49 tList<BaseObject>* objectList; //!< A list of Objects belonging to this Class50 tList<BaseObject>* objectList; //!< A list of Objects belonging to this Class 50 51 51 long classID; //!< ClassID stored in this ClassList \see ClassID52 const char* className; //!< Name of the Class Stored here52 long classID; //!< ClassID stored in this ClassList \see ClassID 53 const char* className; //!< Name of the Class Stored here 53 54 54 ClassList* next; //!< Pointer to the next class in the List55 ClassList* next; //!< Pointer to the next class in the List 55 56 56 57 // STATIC MEMBERS 57 static ClassList* first; //!< The first Class in the List 58 static unsigned int classCount; //!< The Count of classes that have been registered (should match the lower description) 58 static ClassList* first; //!< The first Class in the List 59 static tList<const char>* classList; //!< a List of all Names of all classes, that have registered so far. 60 static unsigned int classCount; //!< The Count of classes that have been registered (should match the lower description) 59 61 }; 60 62
Note: See TracChangeset
for help on using the changeset viewer.