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@296: // This program is free software: you can redistribute it and/or modify
tomwalters@296: // it under the terms of the GNU General Public License as published by
tomwalters@296: // the Free Software Foundation, either version 3 of the License, or
tomwalters@296: // (at your option) any later version.
tomwalters@296: //
tomwalters@296: // This program is distributed in the hope that it will be useful,
tomwalters@296: // but WITHOUT ANY WARRANTY; without even the implied warranty of
tomwalters@296: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
tomwalters@296: // GNU General Public License for more details.
tomwalters@296: //
tomwalters@296: // You should have received a copy of the GNU General Public License
tomwalters@296: // along with this program. If not, see .
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_