--- /dev/null
+
+#ifndef __TObject_hh__
+#define __TObject_hh__
+
+class TObject
+{
+protected:
+ TObject(void) { refCounter = 1; };
+ virtual ~TObject() { };
+
+public:
+ void ref(coid) const { refCounter++; };
+ void unref(void) const { if (--refCounter) delete this; };
+};
+
+#endif // __TObject_hh__