00001 /* 00002 $Id: Object.h,v 1.8 2003/06/30 00:18:06 mindstorm2600 Exp $ 00003 00004 Here we define a parent class, THE OBJECT 00005 00006 */ 00007 #ifndef __CLAW_OBJECT_H__ 00008 #define __CLAW_OBJECT_H__ 00009 #include<clawconfig.h> 00010 #include<_clawClassNames.h> 00011 #ifndef USE_SDL 00012 #include<DataTypes.h> 00013 #else 00014 #include<SDL.h> 00015 #endif 00016 #include<__Destruct.h> 00017 00018 namespace clawsoft{ 00022 class Object{ 00023 private: 00027 char *__cls_name; 00028 protected: 00035 void setClassName(const char *n); 00039 Object(); 00040 public: 00044 const char *getClassName(); 00048 Object(const char *n){ 00049 setClassName(n); 00050 } 00051 }; 00052 }; 00053 #endif
Authors:
Juan V. Guerrero
Jannette C. Mejia
Juan C. Guevara
Powered by: