00001 #ifndef HEADER_NOCOPY_H 00002 #define HEADER_NOCOPY_H 00003 00004 /** 00005 * Class with private copy constructor and assign operator. 00006 */ 00007 class NoCopy { 00008 private: 00009 NoCopy(const NoCopy &) {} 00010 void operator=(const NoCopy &) {} 00011 public: 00012 NoCopy() {} 00013 virtual ~NoCopy() {} 00014 00015 }; 00016 00017 #endif