00001 /* -*- mode: c++ -*- 00002 * 00003 * HippoPlot TextRepFactory 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: TextRepFactory.h,v 1.12 2003/06/11 16:18:08 pfkeb Exp $ 00009 * 00010 */ 00011 00012 #ifndef _TextRepFactory_H_ 00013 #define _TextRepFactory_H_ 00014 00015 #include "pattern/Factory.h" 00016 00017 class RepBase; 00018 00024 class MDL_HIPPOPLOT_API TextRepFactory : public Factory < RepBase > 00025 { 00026 00027 private: 00028 00030 static TextRepFactory * s_instance; 00031 00033 TextRepFactory( const TextRepFactory & ); 00034 00036 void initialize (); 00037 00038 protected: 00039 00042 TextRepFactory(); 00043 00044 public: 00045 00047 static TextRepFactory * instance (); 00048 00049 }; 00050 00051 #endif // _TextRepFactory_H_