00001 #ifndef TwoDFactory_H 00002 #define TwoDFactory_H 00003 00004 00005 #include "TwoD.h" 00006 #include "TopologyFactory.h" 00007 #include <string> 00008 00009 00010 using std::string; 00011 00012 00013 class TwoDFactory : public TopologyFactory { 00014 00015 public: 00016 00017 TwoDFactory( const string& name ) : TopologyFactory( name ) {}; 00018 00019 virtual TopologyImp * build ( const TopolParams& arg ) { 00020 return new TwoD( arg ); 00021 }; 00022 00023 }; 00024 00025 00026 #endif