annotate trunk/src/Support/ModuleFactory.h @ 706:f8e90b5d85fd tip

Delete CARFAC code from this repository. It has been moved to https://github.com/google/carfac Please email me with your github username to get access. I've also created a new mailing list to discuss CARFAC development: https://groups.google.com/forum/#!forum/carfac-dev
author ronw@google.com
date Thu, 18 Jul 2013 20:56:51 +0000
parents 30dde71d0230
children
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@318 6 // Licensed under the Apache License, Version 2.0 (the "License");
tomwalters@318 7 // you may not use this file except in compliance with the License.
tomwalters@318 8 // You may obtain a copy of the License at
tomwalters@296 9 //
tomwalters@318 10 // http://www.apache.org/licenses/LICENSE-2.0
tomwalters@296 11 //
tomwalters@318 12 // Unless required by applicable law or agreed to in writing, software
tomwalters@318 13 // distributed under the License is distributed on an "AS IS" BASIS,
tomwalters@318 14 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
tomwalters@318 15 // See the License for the specific language governing permissions and
tomwalters@318 16 // limitations under the License.
tomwalters@296 17
tomwalters@296 18 /*! \file
tomwalters@296 19 * \brief Factory class for AIM-C modules.
tomwalters@296 20 */
tomwalters@296 21
tomwalters@296 22 /*! \author: Thomas Walters <tom@acousticscale.org>
tomwalters@296 23 * \date 2010/02/23
tomwalters@296 24 * \version \$Id$
tomwalters@296 25 */
tomwalters@296 26
tomwalters@296 27 #ifndef AIMC_SUPPORT_MODULE_FACTORY_H_
tomwalters@296 28 #define AIMC_SUPPORT_MODULE_FACTORY_H_
tomwalters@296 29
tomwalters@296 30 #include <string>
tomwalters@296 31
tomwalters@296 32 #include "Support/Module.h"
tomwalters@296 33 #include "Support/Parameters.h"
tomwalters@296 34
tomwalters@296 35 namespace aimc {
tomwalters@296 36 /*! \brief Factory class for AIM-C modules.
tomwalters@296 37 *
tomwalters@296 38 * This class is the basis for a more complete module registration scheme to
tomwalters@296 39 * be implemented in future. For now, all modules which are created have to
tomwalters@296 40 * be added to this class individually. The goal is to eventally replace this
tomwalters@296 41 * with a REGISTER_MODULE macro which can be added to the header file for
tomwalters@296 42 * every module.
tomwalters@296 43 */
tomwalters@296 44
tomwalters@296 45 class ModuleFactory {
tomwalters@296 46 public:
tomwalters@296 47 static Module* Create(string module_name_, Parameters *params);
tomwalters@296 48 private:
tomwalters@296 49 DISALLOW_COPY_AND_ASSIGN(ModuleFactory);
tomwalters@296 50 };
tomwalters@296 51 }
tomwalters@296 52
tomwalters@296 53 #endif // AIMC_SUPPORT_MODULE_FACTORY_H_