Case manager interface. More...
#include <arcane/core/ICaseMng.h>
Public Member Functions | |
| virtual | ~ICaseMng ()=default |
| Frees resources. | |
| virtual IApplication * | application ()=0 |
| Associated application. | |
| virtual ITraceMng * | traceMng ()=0 |
| Trace manager. | |
| virtual IMeshMng * | meshMng () const =0 |
| Associated mesh manager. | |
| virtual ISubDomain * | subDomain ()=0 |
| Sub-domain manager. | |
| virtual ICaseDocument * | caseDocument ()=0 |
| XML document of the dataset (can be null if no dataset). | |
| virtual ICaseDocumentFragment * | caseDocumentFragment ()=0 |
| Fragment of the XML Document associated with the dataset (can be null if no dataset). | |
| virtual IPhysicalUnitSystem * | physicalUnitSystem () const =0 |
| Associated unit system. | |
| virtual ICaseDocument * | readCaseDocument (const String &filename, ByteConstArrayView bytes)=0 |
| Reads the XML document of the dataset. | |
| virtual void | readOptions (bool is_phase1)=0 |
| Reads the dataset options corresponding to the used modules. | |
| virtual void | printOptions ()=0 |
| Prints the option values. | |
| virtual void | readFunctions ()=0 |
| Reads the dataset tables. | |
| virtual void | registerOptions (ICaseOptions *)=0 |
| Registers a list of dataset options. | |
| virtual void | unregisterOptions (ICaseOptions *)=0 |
| Unregisters a list of dataset options. | |
| virtual CaseOptionsCollection | blocks () const =0 |
| Collection of option blocks. | |
| virtual ICaseFunction * | findFunction (const String &name) const =0 |
| Returns the function by name name or nullptr if none exists. | |
| virtual CaseFunctionCollection | functions ()=0 |
| Returns the list of tables. | |
| virtual void | removeFunction (ICaseFunction *func, bool dofree)=0 |
| Deletes a function. | |
| virtual void | removeFunction (ICaseFunction *func)=0 |
| Deletes a function. | |
| virtual void | addFunction (ICaseFunction *func)=0 |
| Adds the function func. | |
| virtual void | addFunction (Ref< ICaseFunction > func)=0 |
| Adds the function func. | |
| virtual void | updateOptions (Real current_time, Real current_deltat, Integer current_iteration)=0 |
| Updates the options based on a time-marching table. | |
| virtual void | setTreatWarningAsError (bool v)=0 |
| Sets the way warnings are treated. | |
| virtual bool | isTreatWarningAsError () const =0 |
| Indicates whether warnings in the dataset should be treated as errors and cause the code to stop. | |
| virtual void | setAllowUnkownRootElelement (bool v)=0 |
| Sets the permission for unknown elements at the document root. | |
| virtual bool | isAllowUnkownRootElelement () const =0 |
| Indicates whether unknown elements at the document root are allowed. | |
| virtual IObservable * | observable (eCaseMngEventType type)=0 |
| Observable on the instance. | |
| virtual Ref< ICaseMng > | toReference ()=0 |
| virtual ICaseMngInternal * | _internalImpl ()=0 |
| Internal implementation. | |
Private Member Functions | |
| ARCCORE_DECLARE_REFERENCE_COUNTED_INCLASS_METHODS () | |
Case manager interface.
This interface is managed by a reference counter and should not be explicitly destroyed.
Definition at line 56 of file ICaseMng.h.
|
pure virtual |
Internal implementation.
Implemented in Arcane::CaseMng.
References _internalImpl().
Referenced by _internalImpl(), Arcane::CaseOptionMultiExtended::_search(), and Arcane::CaseOptions::CaseOptions().
|
pure virtual |
Adds the function func.
Addition can only be done during initialization. The caller remains the owner of the func instance and must remove it via removeFunction().
Implemented in Arcane::CaseMng.
References addFunction().
Referenced by addFunction(), and addFunction().
|
pure virtual |
Adds the function func.
Addition can only be done during initialization.
Implemented in Arcane::CaseMng.
References addFunction().
|
pure virtual |
Associated application.
Implemented in Arcane::CaseMng.
|
pure virtual |
Collection of option blocks.
Implemented in Arcane::CaseMng.
Referenced by Arcane::TimeLoopMng::doOneIteration(), and Arcane::SubDomain::dumpInternalInfos().
|
pure virtual |
XML document of the dataset (can be null if no dataset).
Implemented in Arcane::CaseMng.
Referenced by Arcane::TimeLoopMng::_fillModuleStateMap(), Arcane::SubDomain::allocateMeshes(), and Arcane::CaseOptionBase::caseDocument().
|
pure virtual |
Fragment of the XML Document associated with the dataset (can be null if no dataset).
Implemented in Arcane::CaseMng.
|
pure virtual |
Returns the function by name name or nullptr if none exists.
Implemented in Arcane::CaseMng.
|
pure virtual |
Returns the list of tables.
The returned pointer is no longer valid as soon as the list of tables changes.
Implemented in Arcane::CaseMng.
|
pure virtual |
Indicates whether unknown elements at the document root are allowed.
Implemented in Arcane::CaseMng.
References isAllowUnkownRootElelement().
Referenced by isAllowUnkownRootElelement().
|
pure virtual |
Indicates whether warnings in the dataset should be treated as errors and cause the code to stop.
Implemented in Arcane::CaseMng.
References isTreatWarningAsError().
Referenced by isTreatWarningAsError().
|
pure virtual |
Associated mesh manager.
Implemented in Arcane::CaseMng.
|
pure virtual |
Observable on the instance.
The type of the observable is given by type
Implemented in Arcane::CaseMng.
References observable().
Referenced by observable().
|
pure virtual |
Associated unit system.
Implemented in Arcane::CaseMng.
|
pure virtual |
Prints the option values.
Implemented in Arcane::CaseMng.
Referenced by Arcane::CodeService::initCase().
|
pure virtual |
Reads the XML document of the dataset.
Implemented in Arcane::CaseMng.
|
pure virtual |
Reads the dataset tables.
Implemented in Arcane::CaseMng.
|
pure virtual |
Reads the dataset options corresponding to the used modules.
Implemented in Arcane::CaseMng.
Referenced by Arcane::CodeService::initCase().
|
pure virtual |
Registers a list of dataset options.
Implemented in Arcane::CaseMng.
Referenced by Arcane::CaseOptions::CaseOptions(), Arcane::CaseOptions::CaseOptions(), and Arcane::CaseOptions::CaseOptions().
|
pure virtual |
Deletes a function.
Deletes the function func. If this function is not in this list, nothing is done.
Implemented in Arcane::CaseMng.
References removeFunction().
|
pure virtual |
Deletes a function.
Deletes the function func. If this function is not in this list, nothing is done. If dofree is true, the delete operator is called on this function.
Implemented in Arcane::CaseMng.
References removeFunction().
Referenced by removeFunction(), and removeFunction().
|
pure virtual |
Sets the permission for unknown elements at the document root.
Implemented in Arcane::CaseMng.
References setAllowUnkownRootElelement().
Referenced by setAllowUnkownRootElelement().
|
pure virtual |
Sets the way warnings are treated.
Implemented in Arcane::CaseMng.
References setTreatWarningAsError().
Referenced by setTreatWarningAsError().
|
pure virtual |
Sub-domain manager.
Implemented in Arcane::CaseMng.
|
pure virtual |
Trace manager.
Implemented in Arcane::CaseMng.
|
pure virtual |
Unregisters a list of dataset options.
Implemented in Arcane::CaseMng.
|
pure virtual |
Updates the options based on a time-marching table.
For each option dependent on a marching table, updates its value using the current_time parameter if it is a marching table with a real parameter, or current_iteration if it is a marching table with an integer parameter. If the option function has a non-zero coefficient ICaseFunction::deltatCoef(), the time used is equal to current_time + coef*current_deltat.
| current_time | time used as parameter for the function |
| current_deltat | deltat used as parameter for the function |
| current_iteration | iteration used as parameter for the function |
Implemented in Arcane::CaseMng.
References updateOptions().
Referenced by Arcane::ModuleMaster::masterContinueInit(), Arcane::ModuleMaster::masterStartInit(), Arcane::ModuleMaster::timeLoopBegin(), and updateOptions().