Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9663 in orxonox.OLD for trunk/src/lib/lang/new_object_list.cc


Ignore:
Timestamp:
Aug 20, 2006, 3:07:59 PM (19 years ago)
Author:
bensch
Message:

more work on classID's

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/lang/new_object_list.cc

    r9662 r9663  
    2525  if (NewObjectListBase::_classes == NULL)
    2626    NewObjectListBase::_classes = new cList;
    27   assert(!NewObjectListBase::exists(className) && "Classes should not be included once, and no two classes should have the same name (key value)");
     27  assert(!NewObjectListBase::classNameExists(className) && "Classes should not be included once, and no two classes should have the same name (key value)");
    2828
     29  this->_id = NewObjectListBase::_idCounter++;
    2930
    3031
     
    4647 * @return true if such a class already exists.
    4748 */
    48 bool NewObjectListBase::exists(const std::string& name)
     49bool NewObjectListBase::classNameExists(const std::string& name)
    4950{
    5051  cList::iterator it;
Note: See TracChangeset for help on using the changeset viewer.