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