JEMRIS  2.8.1
open-source MRI simulations
ModulePrototypeFactory.h
Go to the documentation of this file.
1 
5 /*
6  * JEMRIS Copyright (C)
7  * 2006-2015 Tony Stoecker
8  * 2007-2015 Kaveh Vahedipour
9  * 2009-2015 Daniel Pflugfelder
10  *
11  *
12  * This program is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation; either version 2 of the License, or
15  * (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with this program; if not, write to the Free Software
24  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25  */
26 
27 #ifndef MODULEPROTOTYPEFACTORY_H_
28 #define MODULEPROTOTYPEFACTORY_H_
29 
30 #include "PrototypeFactory.h"
31 #include "Module.h"
36 
37  public:
38 
46 
50  virtual ~ModulePrototypeFactory();
51 
58  Module* CloneModule (DOMNode* node) ;
59 
66  Module* CloneModule (string name) ;
67 
71  map<string, Module*>* GetModuleList() {return &m_Clonables;}
72 
73  protected:
74 
80  Module* GetModule (string name) ;
81 
88  int upper(int c);
89 
90 private:
91  //Modules
92  map<string, Module*> m_Clonables;
93 
94 };
95 
96 #endif /*MODULEPROTOTYPEFACTORY_H_*/
Base class for prototype factories.
Definition: PrototypeFactory.h:44
Module factory.
Definition: ModulePrototypeFactory.h:35
Module * GetModule(string name)
Definition: ModulePrototypeFactory.cpp:85
map< string, Module * > * GetModuleList()
Definition: ModulePrototypeFactory.h:71
virtual ~ModulePrototypeFactory()
Definition: ModulePrototypeFactory.cpp:52
Implementation of JEMRIS PrototypeFactory.
Module super class! ABC for all Objects in the sequence framework.
Definition: Module.h:41
Implementation of JEMRIS Module.
Module * CloneModule(DOMNode *node)
Clone a module by node type.
Definition: ModulePrototypeFactory.cpp:90
ModulePrototypeFactory()
Definition: ModulePrototypeFactory.cpp:60

-- last change 17.06.2016 | Tony Stoecker | Imprint --