3 |
* LinuxSampler - modular, streaming capable sampler * |
* LinuxSampler - modular, streaming capable sampler * |
4 |
* * |
* * |
5 |
* Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * |
* Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * |
6 |
* Copyright (C) 2005 - 2007 Christian Schoenebeck * |
* Copyright (C) 2005 - 2009 Christian Schoenebeck * |
7 |
* * |
* * |
8 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
9 |
* 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 * |
91 |
factory->InnerFactories[Parameter_T::Name()] = new InnerFactoryTemplate<Parameter_T>(factory); |
factory->InnerFactories[Parameter_T::Name()] = new InnerFactoryTemplate<Parameter_T>(factory); |
92 |
} |
} |
93 |
|
|
|
template <class Parameter_T> |
|
|
static void Unregister(DeviceParameterFactory* factory) { |
|
|
std::map<String, InnerFactory*>::iterator iter = factory->InnerFactories.find(Parameter_T::Name()); |
|
|
delete iter->second; |
|
|
factory->InnerFactories.erase(Parameter_T::Name()); |
|
|
} |
|
|
|
|
94 |
std::map<String,DeviceCreationParameter*> CreateAllParams ( std::map<String,String> Parameters ); |
std::map<String,DeviceCreationParameter*> CreateAllParams ( std::map<String,String> Parameters ); |
95 |
std::map<String,DeviceCreationParameter*> CreateAllParams (); |
std::map<String,DeviceCreationParameter*> CreateAllParams (); |
96 |
|
|
97 |
DeviceCreationParameter* Create(String ParameterName, std::map<String,String> Parameters = StringMap()) throw (Exception); |
DeviceCreationParameter* Create(String ParameterName, std::map<String,String> Parameters = StringMap()) throw (Exception); |
98 |
DeviceCreationParameter* Create(String ParameterName, String val) throw (Exception); |
DeviceCreationParameter* Create(String ParameterName, String val) throw (Exception); |
99 |
|
|
100 |
|
~DeviceParameterFactory(); |
101 |
|
|
102 |
protected: |
protected: |
103 |
std::map<String, InnerFactory*> InnerFactories; |
std::map<String, InnerFactory*> InnerFactories; |
104 |
}; |
}; |