OOFEM
2.4
OOFEM.org - Object Oriented Finite Element Solver
|
Class representing and implementing ModuleManager. More...
#include <modulemanager.h>
Public Member Functions | |
ModuleManager (EngngModel *emodel) | |
virtual | ~ModuleManager () |
ModuleManager (const ModuleManager &)=delete | |
ModuleManager & | operator= (const ModuleManager &)=delete |
virtual M * | CreateModule (const char *name, int n, EngngModel *emodel)=0 |
Creates new instance of module. More... | |
virtual int | instanciateYourself (DataReader &dr, InputRecord *ir) |
Reads receiver description from input stream and creates corresponding modules components accordingly. More... | |
virtual IRResultType | initializeFrom (InputRecord *ir)=0 |
Instanciates the receiver from input record. More... | |
virtual const char * | giveClassName () const =0 |
Returns class name of the receiver. More... | |
M * | giveModule (int num) |
Returns the required module. More... | |
int | giveNumberOfModules () const |
Protected Attributes | |
std::vector< std::unique_ptr< M > > | moduleList |
Module list. More... | |
int | numberOfModules |
Number of modules. More... | |
EngngModel * | emodel |
Associated Engineering model. More... | |
Class representing and implementing ModuleManager.
It is attribute of EngngModel. It manages the modules of given type.
Definition at line 57 of file modulemanager.h.
|
inline |
Definition at line 68 of file modulemanager.h.
|
inlinevirtual |
Definition at line 72 of file modulemanager.h.
|
delete |
|
pure virtual |
Creates new instance of module.
name | Name of module. |
n | Number associated with module. |
emodel | Engineering model which receiver belongs to. |
Implemented in oofem::ExportModuleManager, and oofem::InitModuleManager.
|
pure virtual |
Returns class name of the receiver.
Implemented in oofem::ExportModuleManager, and oofem::InitModuleManager.
|
inline |
Returns the required module.
num | Module number. |
Definition at line 137 of file modulemanager.h.
|
inline |
Definition at line 149 of file modulemanager.h.
|
pure virtual |
Instanciates the receiver from input record.
Called from instanciateYourself to initialize yourself from corresponding record. Should be called before instanciateYourself.
Implemented in oofem::InitModuleManager, and oofem::ExportModuleManager.
|
inlinevirtual |
Reads receiver description from input stream and creates corresponding modules components accordingly.
It scans input file, each line is assumed to be single record describing particular module. The record line is converted to lowercase letters. After new output module object is created, its initializeForm member function is called with its record as parameter.
dr | Data reader for input records. |
ir | Record for receiver. |
Definition at line 94 of file modulemanager.h.
Referenced by oofem::EngngModel::instanciateYourself().
|
delete |
|
protected |
Associated Engineering model.
Definition at line 65 of file modulemanager.h.
|
protected |
Module list.
Definition at line 61 of file modulemanager.h.
|
protected |
Number of modules.
Definition at line 63 of file modulemanager.h.