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

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

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

revision 879 by senkov, Tue Jul 6 03:27:38 2004 UTC revision 880 by schoenebeck, Tue Jun 27 22:57:37 2006 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, 2006 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 24  Line 25 
25    
26  namespace LinuxSampler {  namespace LinuxSampler {
27    
28      DeviceCreationParameter* DeviceParameterFactory::Create(String ParameterName, String val) throw (LinuxSamplerException) {      DeviceCreationParameter* DeviceParameterFactory::Create(String ParameterName, String val) throw (Exception) {
29          if (!InnerFactories.count(ParameterName)) throw LinuxSamplerException("No such parameter: '" + ParameterName + "'.");          if (!InnerFactories.count(ParameterName)) throw Exception("No such parameter: '" + ParameterName + "'.");
30          return InnerFactories[ParameterName]->Create(val);          return InnerFactories[ParameterName]->Create(val);
31      }      }
32    
33      DeviceCreationParameter* DeviceParameterFactory::Create(String ParameterName) throw (LinuxSamplerException) {      DeviceCreationParameter* DeviceParameterFactory::Create(String ParameterName) throw (Exception) {
34          if (!InnerFactories.count(ParameterName)) throw LinuxSamplerException("No such parameter: '" + ParameterName + "'.");          if (!InnerFactories.count(ParameterName)) throw Exception("No such parameter: '" + ParameterName + "'.");
35          return InnerFactories[ParameterName]->Create();          return InnerFactories[ParameterName]->Create();
36      }      }
37    

Legend:
Removed from v.879  
changed lines
  Added in v.880

  ViewVC Help
Powered by ViewVC