tomwalters@296: // Copyright 2008-2010, Thomas Walters tomwalters@296: // tomwalters@296: // AIM-C: A C++ implementation of the Auditory Image Model tomwalters@296: // http://www.acousticscale.org/AIMC tomwalters@296: // tomwalters@318: // Licensed under the Apache License, Version 2.0 (the "License"); tomwalters@318: // you may not use this file except in compliance with the License. tomwalters@318: // You may obtain a copy of the License at tomwalters@296: // tomwalters@318: // http://www.apache.org/licenses/LICENSE-2.0 tomwalters@296: // tomwalters@318: // Unless required by applicable law or agreed to in writing, software tomwalters@318: // distributed under the License is distributed on an "AS IS" BASIS, tomwalters@318: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. tomwalters@318: // See the License for the specific language governing permissions and tomwalters@318: // limitations under the License. tomwalters@296: tomwalters@296: /*! \file tomwalters@296: * \brief Factory class for AIM-C modules. tomwalters@296: */ tomwalters@296: tomwalters@296: /*! \author: Thomas Walters tomwalters@296: * \date 2010/02/23 tomwalters@296: * \version \$Id$ tomwalters@296: */ tomwalters@296: tomwalters@296: #ifndef AIMC_SUPPORT_MODULE_FACTORY_H_ tomwalters@296: #define AIMC_SUPPORT_MODULE_FACTORY_H_ tomwalters@296: tomwalters@296: #include tomwalters@296: tomwalters@296: #include "Support/Module.h" tomwalters@296: #include "Support/Parameters.h" tomwalters@296: tomwalters@296: namespace aimc { tomwalters@296: /*! \brief Factory class for AIM-C modules. tomwalters@296: * tomwalters@296: * This class is the basis for a more complete module registration scheme to tomwalters@296: * be implemented in future. For now, all modules which are created have to tomwalters@296: * be added to this class individually. The goal is to eventally replace this tomwalters@296: * with a REGISTER_MODULE macro which can be added to the header file for tomwalters@296: * every module. tomwalters@296: */ tomwalters@296: tomwalters@296: class ModuleFactory { tomwalters@296: public: tomwalters@296: static Module* Create(string module_name_, Parameters *params); tomwalters@296: private: tomwalters@296: DISALLOW_COPY_AND_ASSIGN(ModuleFactory); tomwalters@296: }; tomwalters@296: } tomwalters@296: tomwalters@296: #endif // AIMC_SUPPORT_MODULE_FACTORY_H_