Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4470 in orxonox.OLD


Ignore:
Timestamp:
Jun 2, 2005, 1:55:19 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: baseobject documented

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

Legend:

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

    r4436 r4470  
    6262/**
    6363   \brief sets the class identifiers
    64    \param a number for the class from class_list.h enumeration
    65    \param the class name
     64   \param id a number for the class from class_list.h enumeration
     65   \param className the class name
    6666*/
    6767void BaseObject::setClassID(int id, const char* className)
     
    7474/**
    7575   \brief sets the class identifier
    76    \param a number for the class from class_list.h enumeration
     76   \param id a number for the class from class_list.h enumeration
    7777*/
    7878void BaseObject::setClassID (int id)
     
    8484/**
    8585   \brief sets the class identifiers
    86    \param the class name
     86   \param className the class name
    8787*/
    8888void BaseObject::setClassName(const char* className)
     
    9292
    9393
    94 /**
     94/*
    9595   \brief sets the class identifiers
    9696   \param a number for the class from class_list.h enumeration
    9797   \param the class name
    98 */
     98
    9999bool BaseObject::isA (char* className)
    100100{
     
    103103  return true;
    104104}
    105 
    106 
    107 /*
    108   \brief this finalizes an object and makes it ready to be garbage collected
    109105*/
    110 void BaseObject::finalize()
    111 {
    112   this->finalized = true;
    113 }
    114 
    115106
    116107/**
  • orxonox/trunk/src/lib/lang/base_object.h

    r4436 r4470  
    11/*!
    22    \file base_object.h
    3     \brief Definition of the base object class. that is a global handler for all classes.
     3    \brief Definition of the base object class.
     4
     5    This is a global handler for all classes.
     6
     7    \todo isA()
    48*/
    59
     
    1014#include "class_list.h"
    1115#ifndef NULL
    12 #define NULL 0x0
     16#define NULL 0x0        //!< NULL
    1317#endif
    1418
     
    3236  /** \returns the classID of the corresponding Object */
    3337  inline int getClassID(void) const { return this->id; }
    34   bool isA (char* className);
     38
     39  //  bool isA (char* className);
    3540
    3641  /** \returns if the object is finalized */
    3742  inline bool isFinalized() { return this->finalized; }
    38   void finalize();
     43  /** \brief this finalizes an object and makes it ready to be garbage collected */
     44  void finalize(void) { this->finalized = true; };
    3945
    4046  void setName (const char* newName);
     47  /** \brief returns the Name of this Object */
    4148  const char* getName (void)const { return this->objectName; };
    4249
     
    4653  bool           finalized;        //!< is true if the object is ready to be garbage collected
    4754
    48   char*    objectName;                   //!< The name of this object               
     55  char*          objectName;       //!< The name of this object               
    4956};
    5057
Note: See TracChangeset for help on using the changeset viewer.