Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9682 in orxonox.OLD for trunk/src/lib/lang/new_class_id.h


Ignore:
Timestamp:
Aug 22, 2006, 12:31:29 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: sync

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/lang/new_class_id.h

    r9681 r9682  
    1313#include <list>
    1414
    15 
    1615//! A class to dynamically allocate ClassID's and support a isA operator
    1716class NewClassID
     
    2120  ~NewClassID();
    2221
    23   int leafClassID() const { return _classes.front()._objectList->id(); }
     22  /** @returns the ClassName of the Topmost Object of the ClassStack */
     23  inline const std::string& getClassName() const { return _classes.front()._objectList->name(); }
     24  /** @returns the ID of the Topmost object of the ClassStack */
     25  inline int leafClassID() const { return _classes.front()._objectList->id(); }
    2426
    2527  template<class T> void registerObject(T* object, NewObjectList<T>& list);
Note: See TracChangeset for help on using the changeset viewer.