00001 #ifndef X3DTK_SINGLETON_H 00002 #define X3DTK_SINGLETON_H 00003 00004 namespace X3DTK { 00005 00006 template<class T> 00007 class Singleton 00008 { 00009 public: 00010 static T *getInstance(); 00011 static void removeInstance(); 00012 00013 private: 00014 static T *_instance; 00015 }; 00016 00017 } 00018 00019 #include "Singleton.inl" 00020 00021 #endif