Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4591 in orxonox.OLD for orxonox/trunk/src/lib/lang/base_object.h


Ignore:
Timestamp:
Jun 10, 2005, 6:21:25 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: restructure class_list.h so it supports inheritance-diagram

File:
1 edited

Legend:

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

    r4539 r4591  
    1 /*! 
     1/*!
    22    \file base_object.h
    33    \brief Definition of the base object class.
     
    3030  void setName (const char* newName);
    3131  /** \brief returns the Name of this Object */
    32   const char* getName (void)const { return this->objectName; };
     32  inline const char* getName (void)const { return this->objectName; };
    3333
    3434  /** \returns the className of the corresponding Object */
    35   inline const char* getClassName(void) const { return this->className;};
     35  inline const char* getClassName(void) const { return this->className; };
    3636  /** \returns the classID of the corresponding Object */
    37   inline int getClassID(void) const { return this->id; }
     37  inline int getClassID(void) const { return this->classID; }
    3838
    3939  //  bool isA (char* className);
     
    4444
    4545 protected:
    46   void setClassID(int id);
     46  void setClassID(long classID);
    4747  void setClassName(const char* className);
    48   void setClassID(int id, const char* className);
     48  void setClassID(long classID, const char* className);
    4949
    5050  /** \brief this finalizes an object and makes it ready to be garbage collected */
     
    5252
    5353 private:
    54   const char*    className;        //!< the name of the class
    55   int            id;               //!< this is the id from the class_list.h enumeration
     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
    5658  bool           finalized;        //!< is true if the object is ready to be garbage collected
    57 
    58   char*          objectName;       //!< The name of this object               
    5959};
    6060
Note: See TracChangeset for help on using the changeset viewer.