00001 //-------------------------------------------------------------------------- 00002 // File and Version Information: 00003 // $Id: TrkIdManDumb.h,v 1.1.1.1 2005/04/21 06:26:56 maqm Exp $ 00004 // 00005 // Description: 00006 // Class for generating dummy id numbers (always same value). Users 00007 // can create instances, or use a singleton instance (value = -1). 00008 // 00009 // Environment: 00010 // Software developed for the BaBar Detector at the SLAC B-Factory. 00011 // 00012 // Author(s): Steve Schaffner 00013 // 00014 //------------------------------------------------------------------------ 00015 #ifndef TRKIDMANDUMB_HH 00016 #define TRKIDMANDUMB_HH 00017 #include "TrkBase/TrkIdManager.h" 00018 00019 // Class interface // 00020 class TrkIdManDumb : public TrkIdManager { 00021 00022 public: 00023 TrkIdManDumb(long val); 00024 virtual ~TrkIdManDumb(); 00025 static TrkIdManDumb* instance(); 00026 00027 virtual long nextId(); 00028 virtual long lastId() const; 00029 virtual void setMax(long maxid); 00030 private: 00031 long _theValue; 00032 00033 long theValue() const {return _theValue;} 00034 // Preempt 00035 TrkIdManDumb& operator= (const TrkIdManDumb&); 00036 TrkIdManDumb(const TrkIdManDumb &); 00037 }; 00038 00039 #endif 00040 00041 00042 00043 00044 00045 00046