Changeset 4756 in orxonox.OLD for orxonox/trunk/src/lib/lang
- Timestamp:
- Jul 1, 2005, 7:50:30 PM (19 years ago)
- Location:
- orxonox/trunk/src/lib/lang
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/lang/class_list.cc
r4755 r4756 123 123 while (likely(tmp != NULL)) 124 124 { 125 if (tmp->classID == classID || classID == CL_NULL)125 if (tmp->classID == classID || (classID == CL_NULL && tmp->classID == CL_BASE_OBJECT)) 126 126 { 127 127 tIterator<BaseObject>* iterator = tmp->objectList->getIterator(); … … 152 152 PRINT(0)("= CLASS_LIST (level %d) =\n", debugLevel); 153 153 PRINT(0)("==========================\n"); 154 PRINT(0)(" has %d Elements\n\n", ClassList::classCount);154 PRINT(0)(" knows %d Classes\n\n", ClassList::classCount); 155 155 ClassList* tmp = ClassList::first; 156 156 char niceString[100]; … … 168 168 niceString[30-strlen(tmp->className) - lenCount] = '\0'; 169 169 170 PRINT(0)(" CLASS %s:%s %d instances\n", tmp->className, niceString, tmp->objectList->getSize());170 PRINT(0)(" CLASS %s:%s %d\n", tmp->className, niceString, tmp->objectList->getSize()); 171 171 172 172 if (debugLevel >=2 && tmp->objectList->getSize() > 0) -
orxonox/trunk/src/lib/lang/class_list.h
r4754 r4756 27 27 virtual ~ClassList(); 28 28 29 // STATIC FUNCTIONS 29 30 static void addToClassList(BaseObject* objectPointer, const long& classID, const char* className); 30 31 static void removeFromClassList(BaseObject* objectPointer); 31 32 32 bool exists(BaseObject* object, long classID = CL_NULL);33 static bool exists(BaseObject* object, long classID = CL_NULL); 33 34 34 35 static void debug(unsigned int debugLevel = 0);
Note: See TracChangeset
for help on using the changeset viewer.