SingletonDeclaration.h

Go to the documentation of this file.
00001 #ifndef __SINGLETONDECLARATION_H__
00002 #define __SINGLETONDECLARATION_H__
00003 
00004 /*
00005 
00006 $Header$
00007 
00008 */
00009 
00010 template<class T>
00011 class Singleton
00012 {
00013 
00014 public:
00015 
00016   static T *instance();
00017 
00018 protected:
00019 
00020   Singleton() {};
00021   virtual ~Singleton();
00022 
00023 private:
00024 
00025   Singleton(const Singleton& source) {};
00026 
00027   static T *_instance;
00028   static bool _fabricaLocked;
00029 };
00030 
00031 #endif

Generated on Thu Sep 6 20:11:25 2007 for Pylon Application Platform by  doxygen 1.5.1