Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/lib/lang/base_object.h @ 4381

Last change on this file since 4381 was 4381, checked in by bensch, 19 years ago

orxonox/trunk: made include more local. stdincl.h not in base_object.h anymore

File size: 948 bytes
Line 
1/*!
2    \file proto_class.h
3    \brief Definition of the proto class template, used quickly start work
4*/
5
6
7#ifndef _BASE_OBJECT_H
8#define _BASE_OBJECT_H
9
10#include "class_list.h"
11
12class BaseObject {
13
14 public:
15  BaseObject ();
16  virtual ~BaseObject ();
17
18  void setClassID(int id);
19  void setClassName(const char* className);
20  void setClassID(int id, const char* className);
21
22  inline const char* getClassName(void) const { return this->className;};
23  inline int getClassID(void) const { return this->id; }
24  bool isA (char* className);
25
26  inline bool isFinalized() { return this->finalized; }
27  void finalize();
28
29 private:
30  const char*    className;                       //!< the name of the class
31  int            id;                              //!< this is the id from the class_list.h enumeration
32  bool           finalized;                       //!< is true if the object is ready to be garbage collected
33};
34
35#endif /* _BASE_OBJECT_H */
Note: See TracBrowser for help on using the repository browser.