Skip to content
Snippets Groups Projects
Select Git revision
  • 1cb3e05dcfd6f8f1eed83c4bead05ec84741de4a
  • master default protected
  • develop-GA
  • timeFstatmap
  • add-higher-spindown-components
  • develop-DK
  • adds-header-to-grid-search
  • v1.2
  • v1.1.2
  • v1.1.0
  • v1.0.1
11 results

grid_based_searches.py

Blame
  • Forked from Gregory Ashton / PyFstat
    Source project has a limited visibility.
    GraphicsEngineFactory.cpp 1.94 KiB
    /***************************************************************************
     *   Copyright (C) 2008 by Oliver Bock                                     *
     *   oliver.bock[AT]aei.mpg.de                                             *
     *                                                                         *
     *   This file is part of Einstein@Home.                                   *
     *                                                                         *
     *   Einstein@Home is free software: you can redistribute it and/or modify *
     *   it under the terms of the GNU General Public License as published     *
     *   by the Free Software Foundation, version 2 of the License.            *
     *                                                                         *
     *   Einstein@Home is distributed in the hope that it will be useful,      *
     *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
     *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the          *
     *   GNU General Public License for more details.                          *
     *                                                                         *
     *   You should have received a copy of the GNU General Public License     *
     *   along with Einstein@Home. If not, see <http://www.gnu.org/licenses/>. *
     *                                                                         *
     ***************************************************************************/
    
    #include "GraphicsEngineFactory.h"
    
    GraphicsEngineFactory::~GraphicsEngineFactory()
    {
    }
    GraphicsEngineFactory::GraphicsEngineFactory()
    {
    }
    
    AbstractGraphicsEngine * GraphicsEngineFactory::createInstance(
    							GraphicsEngineFactory::Engines engine,
    							GraphicsEngineFactory::Applications application)
    {
    	switch(engine) {
    		case Starsphere:
    			switch(application) {
    				case EinsteinS5R3:
    					return new StarsphereS5R3();
    					break;
    				default:
    					return NULL;
    			}
    			break;
    		default:
    			return NULL;	
    	}
    }