00001 /* -*- mode: c++ -*- 00002 * 00003 * HippoPlot BinsFactory class interface 00004 * 00005 * Copyright (C) 2003 The Board of Trustees of The Leland Stanford 00006 * Junior University. All Rights Reserved. 00007 * 00008 * $Id: BinsFactory.h,v 1.1 2003/02/15 18:35:09 pfkeb Exp $ 00009 * 00010 */ 00011 00012 #ifndef _BinsFactory_H_ 00013 #define _BinsFactory_H_ 00014 00015 #include "pattern/Factory.h" 00016 00017 class BinsBase; 00018 00029 class MDL_HIPPOPLOT_API BinsFactory : public Factory <BinsBase> 00030 { 00031 00032 private: 00033 00035 static BinsFactory * s_instance; 00036 00038 BinsFactory ( const BinsFactory & ); 00039 00041 void initialize (); 00042 00043 protected: 00044 00047 BinsFactory(); 00048 00049 public: 00050 00052 static BinsFactory * instance (); 00053 00054 }; 00055 00056 #endif // _BinsFactory_H_