JEMRIS  2.8.1
open-source MRI simulations
List of all members | Public Member Functions | Protected Member Functions | Private Attributes
ModulePrototypeFactory Class Reference

Module factory. More...

#include <ModulePrototypeFactory.h>

+ Inheritance diagram for ModulePrototypeFactory:
+ Collaboration diagram for ModulePrototypeFactory:

Public Member Functions

 ModulePrototypeFactory ()
 
virtual ~ModulePrototypeFactory ()
 
ModuleCloneModule (DOMNode *node)
 Clone a module by node type. More...
 
ModuleCloneModule (string name)
 Clone a module by name. More...
 
map< string, Module * > * GetModuleList ()
 
- Public Member Functions inherited from PrototypeFactory
 PrototypeFactory ()
 Default constructor.
 
virtual ~PrototypeFactory ()
 Default destructor.
 
PrototypeClone (DOMNode *node)
 Clone a prototype by node. More...
 
PrototypeClone (string name)
 Clone a prototype by name. More...
 
map< string, Prototype * > * getList ()
 Get Pointer to list of clonable prototypes. More...
 

Protected Member Functions

ModuleGetModule (string name)
 
int upper (int c)
 
- Protected Member Functions inherited from PrototypeFactory
Prototypeget (string name)
 Get pointer to Prototype by name. More...
 
int upper (int c)
 

Private Attributes

map< string, Module * > m_Clonables
 

Additional Inherited Members

- Protected Attributes inherited from PrototypeFactory
map< string, Prototype * > m_Clonables
 

Detailed Description

Module factory.

Constructor & Destructor Documentation

ModulePrototypeFactory::ModulePrototypeFactory ( )

Constructor

Will initialise with the available Prototypes. Every available module needs to be registered here! Also include the header of the module in the ModulePrototypeFactory.cpp

+ Here is the call graph for this function:

ModulePrototypeFactory::~ModulePrototypeFactory ( )
virtual

Destructor

Member Function Documentation

Module * ModulePrototypeFactory::CloneModule ( DOMNode *  node)

Clone a module by node type.

Parameters
nodeDOMNode containing module attributes.
Returns
The pointer to the cloned Module

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Module * ModulePrototypeFactory::CloneModule ( string  name)

Clone a module by name.

Parameters
nameof the module
Returns
The pointer to the cloned Module

+ Here is the call graph for this function:

Module * ModulePrototypeFactory::GetModule ( string  name)
protected

Get Module

Parameters
name

+ Here is the caller graph for this function:

map<string, Module*>* ModulePrototypeFactory::GetModuleList ( )
inline

Return a pointer to the clonable Module list.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int ModulePrototypeFactory::upper ( int  c)
protected

Upper case

Parameters
cChar to be converted.
Returns
Converted char.

+ Here is the caller graph for this function:


The documentation for this class was generated from the following files:

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