00001 /*-*-c++-*-***************************************************************** 00002 simulationsystemfactory.h - description 00003 ------------------- 00004 begin : Mon May 6 2002 00005 copyright : (C) 2002 by Peter Haase 00006 email : mail@p-haase.de 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This library is free software; you can redistribute it and/or * 00012 * modify it under the terms of the GNU Lesser General Public * 00013 * License as published by the Free Software Foundation; either * 00014 * version 2.1 of the License, or (at your option) any later version. * 00015 * * 00016 * This library is distributed in the hope that it will be useful, * 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 00019 * Lesser General Public License for more details. * 00020 * * 00021 * You should have received a copy of the GNU Lesser General Public * 00022 * License along with this library; if not, write to the Free Software * 00023 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, * 00024 * MA 02111-1307 USA * 00025 * * 00026 ***************************************************************************/ 00027 00033 #ifndef SIMULATION_SYSTEM_FACTORY 00034 #define SIMULATION_SYSTEM_FACTORY 00035 00036 #include <string> 00037 #include <iostream> 00038 00039 namespace simth 00040 { 00041 00042 class SimulationSystem; 00043 00050 class BasicSimulationSystemFactory 00051 { 00052 00053 public: 00054 00055 BasicSimulationSystemFactory() {}; 00056 virtual ~BasicSimulationSystemFactory() {}; 00057 00062 virtual SimulationSystem* newSimulationSystem() const = 0; 00063 }; 00064 00065 00070 class SimulationSystemFactory : public BasicSimulationSystemFactory 00071 { 00072 const std::string fileName; 00073 public: 00074 SimulationSystemFactory(const std::string fileName); 00075 virtual ~SimulationSystemFactory(); 00076 00080 virtual SimulationSystem* newSimulationSystem() const; 00081 }; 00082 00083 } 00084 00085 #endif