00001 /* -*- mode: c++ -*- 00002 * 00003 * HippoPlot DataRepFactory class interface 00004 * 00005 * Copyright (C) 2001-2003 The Board of Trustees of The Leland 00006 * Stanford Junior University. All Rights Reserved. 00007 * 00008 * $Id: DataRepFactory.h,v 1.15 2003/03/01 21:55:28 pfkeb Exp $ 00009 * 00010 */ 00011 00012 #ifndef _DataRepFactory_H_ 00013 #define _DataRepFactory_H_ 00014 00015 #include "pattern/Factory.h" 00016 00017 class DataRep; 00018 00024 class MDL_HIPPOPLOT_API DataRepFactory : public Factory < DataRep > 00025 { 00026 00027 private: 00028 00030 static DataRepFactory * s_instance; 00031 00033 DataRepFactory ( const DataRepFactory & ); 00034 00036 void initialize (); 00037 00038 protected: 00039 00042 DataRepFactory ( ); 00043 00044 public: 00045 00047 static DataRepFactory * instance (); 00048 00049 }; 00050 00051 #endif // _DataRepFactory_H_