annotate src/Support/ModuleFactory.h @ 45:c5f5e9569863

- Modified licence from GPL 3 to Apache v2
author tomwalters
date Tue, 30 Mar 2010 22:06:24 +0000
parents 491b1b1d1dc5
children
rev   line source
tomwalters@23 1 // Copyright 2008-2010, Thomas Walters
tomwalters@23 2 //
tomwalters@23 3 // AIM-C: A C++ implementation of the Auditory Image Model
tomwalters@23 4 // http://www.acousticscale.org/AIMC
tomwalters@23 5 //
tomwalters@45 6 // Licensed under the Apache License, Version 2.0 (the "License");
tomwalters@45 7 // you may not use this file except in compliance with the License.
tomwalters@45 8 // You may obtain a copy of the License at
tomwalters@23 9 //
tomwalters@45 10 // http://www.apache.org/licenses/LICENSE-2.0
tomwalters@23 11 //
tomwalters@45 12 // Unless required by applicable law or agreed to in writing, software
tomwalters@45 13 // distributed under the License is distributed on an "AS IS" BASIS,
tomwalters@45 14 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
tomwalters@45 15 // See the License for the specific language governing permissions and
tomwalters@45 16 // limitations under the License.
tomwalters@23 17
tomwalters@23 18 /*! \file
tomwalters@23 19 * \brief Factory class for AIM-C modules.
tomwalters@23 20 */
tomwalters@23 21
tomwalters@23 22 /*! \author: Thomas Walters <tom@acousticscale.org>
tomwalters@23 23 * \date 2010/02/23
tomwalters@23 24 * \version \$Id$
tomwalters@23 25 */
tomwalters@23 26
tomwalters@23 27 #ifndef AIMC_SUPPORT_MODULE_FACTORY_H_
tomwalters@23 28 #define AIMC_SUPPORT_MODULE_FACTORY_H_
tomwalters@23 29
tomwalters@23 30 #include <string>
tomwalters@23 31
tomwalters@23 32 #include "Support/Module.h"
tomwalters@23 33 #include "Support/Parameters.h"
tomwalters@23 34
tomwalters@23 35 namespace aimc {
tomwalters@23 36 /*! \brief Factory class for AIM-C modules.
tomwalters@23 37 *
tomwalters@23 38 * This class is the basis for a more complete module registration scheme to
tomwalters@23 39 * be implemented in future. For now, all modules which are created have to
tomwalters@23 40 * be added to this class individually. The goal is to eventally replace this
tomwalters@23 41 * with a REGISTER_MODULE macro which can be added to the header file for
tomwalters@23 42 * every module.
tomwalters@23 43 */
tomwalters@23 44
tomwalters@23 45 class ModuleFactory {
tomwalters@23 46 public:
tomwalters@23 47 static Module* Create(string module_name_, Parameters *params);
tomwalters@23 48 private:
tomwalters@23 49 DISALLOW_COPY_AND_ASSIGN(ModuleFactory);
tomwalters@23 50 };
tomwalters@23 51 }
tomwalters@23 52
tomwalters@23 53 #endif // AIMC_SUPPORT_MODULE_FACTORY_H_