JEMRIS  2.8.1
open-source MRI simulations
CoilPrototypeFactory.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 COILPROTOTYPEFACTORY_H_
28 #define COILPROTOTYPEFACTORY_H_
29 
30 #include "Coil.h"
31 #include "PrototypeFactory.h"
32 
37 
38 
39 public:
40 
49 
53  virtual ~CoilPrototypeFactory() {};
54 
61  Coil* Clone (DOMNode* node) ;
62 
69  Coil* Clone (string name) ;
70 
76  map<string, Coil*>* getList() {return &m_Clonables;}
77 
78 
79  protected:
80 
86  Coil* get (string name) ;
87 
94  int upper(int c);
95 
96 
97  private:
98 
99 
100  map<string, Coil*> m_Clonables;
102 };
103 
104 #endif /*COILPROTOTYPEFACTORY_H_*/
Base class for prototype factories.
Definition: PrototypeFactory.h:44
map< string, Coil * > m_Clonables
Coil protoype list.
Definition: CoilPrototypeFactory.h:100
virtual ~CoilPrototypeFactory()
Destructor.
Definition: CoilPrototypeFactory.h:53
CoilPrototypeFactory()
Constructor.
Definition: CoilPrototypeFactory.cpp:37
This interface knows about coil prototypes.
Definition: CoilPrototypeFactory.h:36
Coil * Clone(DOMNode *node)
Clone a coil by node type.
Definition: CoilPrototypeFactory.cpp:52
map< string, Coil * > * getList()
Get list of all coil prototypes.
Definition: CoilPrototypeFactory.h:76
Implementation of JEMRIS PrototypeFactory.
Implementation of JEMRIS Coil.
Base class of coil objects.
Definition: Coil.h:39

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