Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: all WorldEntities/PWodes now destroy all date they alocate.

this is done with a virtual destructor:
if PNode is deleted it calls for the delete of the virtual destructor, and deletes the data of it.

File size: 441 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 "stdincl.h"
11
12
13class BaseObject {
14
15 public:
16  BaseObject ();
17  virtual ~BaseObject ();
18
19  void destroy(void);
20
21  void setClassName (char* className);
22  char* getClassName(void) const;
23  bool isA (char* className);
24
25 private:
26  char* className;
27
28};
29
30#endif /* _BASE_OBJECT_H */
Note: See TracBrowser for help on using the repository browser.