fdhwlib
2.0.25
|
00001 /*************************************************************************** 00002 aksingletontest.h - description 00003 00004 begin : Thu Feb 21 2002 00005 copyright : (C) 2002 by A Kopmann 00006 email : kopmann@ipe.fzk.de 00007 status : 00008 test : 00009 history : 00010 ***************************************************************************/ 00011 00012 00013 #ifndef AKSINGLETONTEST_H 00014 #define AKSINGLETONTEST_H 00015 00016 #include <akutil/aksingleton.h> 00017 #include <akutil/aksingletoncleaner.h> 00018 00019 00025 class akSingletonTest : public akSingleton { 00026 00027 protected: 00028 akSingletonTest(); 00029 00030 public: 00031 ~akSingletonTest(){ 00032 printf("akSingletonTest: Delete\n"); 00033 cleaner.setObject( 0 ); 00034 } 00035 00036 static akSingletonTest *getReference(); 00037 00038 00039 void dump(){ 00040 printf("akSingletonTest: \n"); 00041 } 00042 00043 00044 private: 00045 static akSingletonTest instance; 00046 00047 static akSingletonCleaner cleaner; 00048 00049 00050 }; 00051 00052 #endif