1 |
/*************************************************************************** |
/*************************************************************************** |
2 |
* * |
* * |
3 |
* Copyright (C) 2005 Christian Schoenebeck * |
* Copyright (C) 2005, 2006 Christian Schoenebeck * |
4 |
* * |
* * |
5 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
6 |
* it under the terms of the GNU General Public License as published by * |
* it under the terms of the GNU General Public License as published by * |
22 |
#define __LS_ENGINEFACTORY_H__ |
#define __LS_ENGINEFACTORY_H__ |
23 |
|
|
24 |
#include "../common/global.h" |
#include "../common/global.h" |
25 |
#include "../common/LinuxSamplerException.h" |
#include "../common/Exception.h" |
26 |
#include "common/Engine.h" |
#include "Engine.h" |
27 |
|
|
28 |
#include <set> |
#include <set> |
29 |
|
#include <vector> |
30 |
|
|
31 |
namespace LinuxSampler { |
namespace LinuxSampler { |
32 |
|
|
33 |
class EngineFactory { |
class EngineFactory { |
34 |
public: |
public: |
35 |
static Engine* Create(String EngineType) throw (LinuxSamplerException); |
static std::vector<String> AvailableEngineTypes(); |
36 |
|
static String AvailableEngineTypesAsString(); |
37 |
|
static Engine* Create(String EngineType) throw (Exception); |
38 |
static void Destroy(Engine* pEngine); |
static void Destroy(Engine* pEngine); |
39 |
static const std::set<Engine*>& EngineInstances(); |
static const std::set<Engine*>& EngineInstances(); |
40 |
}; |
}; |