/[svn]/linuxsampler/trunk/src/drivers/DeviceParameterFactory.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/drivers/DeviceParameterFactory.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1888 by persson, Fri Jun 22 10:10:06 2007 UTC revision 1889 by persson, Sun Apr 26 12:19:00 2009 UTC
# Line 3  Line 3 
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  *
# Line 91  namespace LinuxSampler { Line 91  namespace LinuxSampler {
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          };          };

Legend:
Removed from v.1888  
changed lines
  Added in v.1889

  ViewVC Help
Powered by ViewVC