00001 /********************* 00002 * Untitledurpose 00003 * uthor 00004 **********************/ 00005 #pragma once 00006 #include "constants.h" 00007 00008 struct propertylist_t 00009 { 00010 char *key; 00011 char *value; 00012 struct propertylist_t *next; 00013 }; 00014 00015 class GObject 00016 { 00017 protected: 00018 int miId; 00019 struct propertylist_t *PropertyList; 00020 bool mbActive; 00021 00022 public: 00023 GObject(void); 00024 ~GObject(void); 00025 int queryProperty(char *, char **); 00026 int insertProperty(char *, char *); 00027 int copyPropertyList(GObject *); 00028 int clearPropertyList(void); 00029 bool isEmpty(void); 00030 virtual bool isActive(void); 00031 virtual void setActive(bool); 00032 virtual int Update(double time, double dtime); 00033 00034 };