Skip to content
Snippets Groups Projects
Select Git revision
  • 49b1ca9447d79cf5e6bcba0a33b0468fcbcb6319
  • master default protected
  • legacy
  • jdk-17.0.13-ga-legacy
  • jdk-17.0.14+4
  • jdk-17.0.14+3
  • jdk-17.0.14+2
  • jdk-17.0.14+1
  • jdk-17.0.13-ga
  • jdk-17.0.13+11
  • jdk-17.0.13+10
  • jdk-17.0.13+9
  • jdk-17.0.13+8
  • jdk-17.0.13+7
  • jdk-17.0.13+6
  • jdk-17.0.14+0
  • jdk-17.0.13+5
  • jdk-17.0.13+4
  • jdk-17.0.13+3
  • jdk-17.0.13+2
  • jdk-17.0.13+1
  • jdk-17.0.13+0
  • jdk-17.0.12-ga
23 results

AlgorithmParametersSpi.java

Blame
  • GraphicsEngineFactory.cpp 2.00 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;
    				case EinsteinRadio:
    					return new StarsphereRadio();
    					break;
    				default:
    					return NULL;
    			}
    			break;
    		default:
    			return NULL;
    	}
    }