Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4742 in orxonox.OLD for orxonox/trunk/src/lib/lang


Ignore:
Timestamp:
Jun 30, 2005, 4:38:33 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: BaseObject now only knows setClassID → standartisation

Location:
orxonox/trunk/src/lib/lang
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/lang/base_object.cc

    r4596 r4742  
    6868void BaseObject::setClassID(long classID, const char* className)
    6969{
    70   this->setClassID(classID);
    71   this->setClassName(className);
    72 }
    73 
    74 
    75 /**
    76    \brief sets the class identifier
    77    \param id a number for the class from class_list.h enumeration
    78 */
    79 void BaseObject::setClassID (long classID)
    80 {
    8170  this->classID |= classID;
    82 }
    83 
    84 
    85 /**
    86    \brief sets the class identifiers
    87    \param className the class name
    88 */
    89 void BaseObject::setClassName(const char* className)
    90 {
    9171  this->className = className;
    9272}
     
    9575  \brief set the name of the Object
    9676 */
    97              void BaseObject::setName (const char* objectName)
     77void BaseObject::setName (const char* objectName)
    9878{
    9979  if (this->objectName)
  • orxonox/trunk/src/lib/lang/base_object.h

    r4595 r4742  
    44
    55    This is a global handler for all classes.
    6 
    7     \todo isA()
    86*/
    97
     
    1210#define _BASE_OBJECT_H
    1311
    14 #include "class_list.h"
     12#include "class_id.h"
    1513#ifndef NULL
    1614#define NULL 0x0        //!< NULL
     
    4543
    4644 protected:
    47   void setClassID(long classID);
    48   void setClassName(const char* className);
    4945  void setClassID(long classID, const char* className);
    5046
     
    5248  void finalize(void) { this->finalized = true; };
    5349
    54  private:
    55   const char*    className;        //!< the name of the class
    56   long           classID;          //!< this is the id from the class_list.h enumeration
    57   char*          objectName;       //!< The name of this object
     50  private:
     51    static void addToClassList(BaseObject* object, ClassID id, const char* className);
    5852
    59   bool           finalized;        //!< is true if the object is ready to be garbage collected
     53  private:
     54    const char*        className;        //!< the name of the class
     55    long               classID;          //!< this is the id from the class_list.h enumeration
     56    char*              objectName;       //!< The name of this object
     57
     58    bool               finalized;        //!< is true if the object is ready to be garbage collected
     59
     60//    static ClassList*  classList;
    6061};
    6162
Note: See TracChangeset for help on using the changeset viewer.