annotate trunk/src/Support/ModuleFactory.cc @ 307:a9e7737cad19

-Added CVs as well as VCs to the gen features script
author tomwalters
date Fri, 26 Feb 2010 07:12:14 +0000
parents fe5ce00a64f5
children 30dde71d0230
rev   line source
tomwalters@296 1 // Copyright 2008-2010, Thomas Walters
tomwalters@296 2 //
tomwalters@296 3 // AIM-C: A C++ implementation of the Auditory Image Model
tomwalters@296 4 // http://www.acousticscale.org/AIMC
tomwalters@296 5 //
tomwalters@296 6 // This program is free software: you can redistribute it and/or modify
tomwalters@296 7 // it under the terms of the GNU General Public License as published by
tomwalters@296 8 // the Free Software Foundation, either version 3 of the License, or
tomwalters@296 9 // (at your option) any later version.
tomwalters@296 10 //
tomwalters@296 11 // This program is distributed in the hope that it will be useful,
tomwalters@296 12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
tomwalters@296 13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
tomwalters@296 14 // GNU General Public License for more details.
tomwalters@296 15 //
tomwalters@296 16 // You should have received a copy of the GNU General Public License
tomwalters@296 17 // along with this program. If not, see <http://www.gnu.org/licenses/>.
tomwalters@296 18
tomwalters@296 19 #include "Modules/Input/ModuleFileInput.h"
tomwalters@296 20 #include "Modules/BMM/ModuleGammatone.h"
tomwalters@296 21 #include "Modules/BMM/ModulePZFC.h"
tomwalters@296 22 #include "Modules/NAP/ModuleHCL.h"
tomwalters@296 23 #include "Modules/Strobes/ModuleParabola.h"
tomwalters@296 24 #include "Modules/SAI/ModuleSAI.h"
tomwalters@296 25 #include "Modules/SSI/ModuleSSI.h"
tomwalters@296 26 #include "Modules/Profile/ModuleSlice.h"
tomwalters@296 27 #include "Modules/Profile/ModuleScaler.h"
tomwalters@296 28 #include "Modules/Features/ModuleGaussians.h"
tomwalters@296 29 #include "Modules/Output/FileOutputHTK.h"
tomwalters@296 30
tomwalters@296 31 #include "Support/ModuleFactory.h"
tomwalters@296 32
tomwalters@296 33 namespace aimc {
tomwalters@296 34 Module* ModuleFactory::Create(string module_name_, Parameters* params) {
tomwalters@296 35 if (module_name_.compare("gt") == 0)
tomwalters@296 36 return new ModuleGammatone(params);
tomwalters@296 37
tomwalters@296 38 if (module_name_.compare("pzfc") == 0)
tomwalters@296 39 return new ModulePZFC(params);
tomwalters@296 40
tomwalters@296 41 if (module_name_.compare("gaussians") == 0)
tomwalters@296 42 return new ModuleGaussians(params);
tomwalters@296 43
tomwalters@296 44 if (module_name_.compare("file_input") == 0)
tomwalters@296 45 return new ModuleFileInput(params);
tomwalters@296 46
tomwalters@296 47 if (module_name_.compare("hcl") == 0)
tomwalters@296 48 return new ModuleHCL(params);
tomwalters@296 49
tomwalters@296 50 if (module_name_.compare("htk_out") == 0)
tomwalters@296 51 return new FileOutputHTK(params);
tomwalters@296 52
tomwalters@296 53 if (module_name_.compare("scaler") == 0)
tomwalters@296 54 return new ModuleScaler(params);
tomwalters@296 55
tomwalters@296 56 if (module_name_.compare("slice") == 0)
tomwalters@296 57 return new ModuleSlice(params);
tomwalters@296 58
tomwalters@296 59 if (module_name_.compare("weighted_sai") == 0)
tomwalters@296 60 return new ModuleSAI(params);
tomwalters@296 61
tomwalters@296 62 if (module_name_.compare("ssi") == 0)
tomwalters@296 63 return new ModuleSSI(params);
tomwalters@296 64
tomwalters@296 65 if (module_name_.compare("parabola") == 0)
tomwalters@296 66 return new ModuleParabola(params);
tomwalters@296 67
tomwalters@296 68 return NULL;
tomwalters@296 69 }
tomwalters@296 70 } // namespace aimc