Public Member Functions | |
| CodeService (const ServiceBuildInfo &sbi) | |
| bool | parseArgs (StringList &) override |
| Parses the command line arguments. | |
| ISubDomain * | createAndLoadCase (ISession *session, const SubDomainBuildInfo &sdbi) override |
| Creates and loads the case using the info sdbi for the session session. | |
| void | initCase (ISubDomain *sub_domain, bool is_continue) override |
| Initializes the session session. | |
| bool | allowExecution () const override |
| Returns whether the code allows execution. | |
| StringCollection | validExtensions () const override |
| Returns the list of file extensions processed by the instance. The extension does not include the '.'. | |
| Real | lengthUnit () const override |
| Length unit used by the code. | |
| IServiceInfo * | serviceInfo () const override |
| Service information. | |
| IBase * | serviceParent () const override |
| Parent of this service. | |
| IService * | serviceInterface () override |
| Interface of this service (normally this). | |
| Public Member Functions inherited from Arcane::ICodeService | |
| ~ICodeService ()=default | |
| Frees resources. | |
| virtual ISession * | createSession ()=0 |
| Creates a session. | |
| Public Member Functions inherited from Arcane::IService | |
| virtual | ~IService () |
| Releases resources. | |
Protected Member Functions | |
| void | _addExtension (const String &extension) |
| IApplication * | _application () const |
| virtual void | _preInitializeSubDomain (ISubDomain *) |
| Protected Member Functions inherited from Arcane::IService | |
| IService () | |
| Constructor. | |
Definition at line 44 of file CodeService.h.
|
explicit |
Definition at line 78 of file CodeService.cc.
|
override |
Definition at line 87 of file CodeService.cc.
|
protected |
Definition at line 225 of file CodeService.cc.
|
protected |
Definition at line 234 of file CodeService.cc.
|
inlineprotectedvirtual |
Definition at line 73 of file CodeService.h.
|
overridevirtual |
Returns whether the code allows execution.
Implements Arcane::ICodeService.
Definition at line 96 of file CodeService.cc.
|
overridevirtual |
Creates and loads the case using the info sdbi for the session session.
Implements Arcane::ICodeService.
Definition at line 114 of file CodeService.cc.
References Arcane::ISession::createSubDomain(), Arcane::ITraceMng::error(), Arcane::ISubDomain::readCaseMeshes(), and Arcane::IBase::traceMng().
|
overridevirtual |
Initializes the session session.
| is_continue | indicates if we are resuming The case must already have been loaded by loadCase() |
Implements Arcane::ICodeService.
Definition at line 142 of file CodeService.cc.
References Arcane::IVariableMng::_internalApi(), Arcane::ISubDomain::caseMng(), Arcane::ISubDomain::checkpointMng(), Arcane::IProfilingService::dumpJSON(), Arcane::ITimeLoopMng::execBuildEntryPoints(), Arcane::ITimeLoopMng::execInitEntryPoints(), Arcane::platform::getProcessId(), Arcane::platform::getProfilingService(), Arcane::String::localstr(), Arcane::ICaseMng::printOptions(), Arcane::ICheckpointMng::readCheckpoint(), Arcane::ICheckpointMng::readDefaultCheckpointInfo(), Arcane::ICaseMng::readOptions(), Arcane::ProfilingSentryWithInitialize::setPrintAtEnd(), Arcane::ISubDomain::timeLoopMng(), and Arcane::ISubDomain::variableMng().
|
inlineoverridevirtual |
Length unit used by the code.
This must be 1.0 if the code uses the international system and thus the meter as the length unit. If the unit is the centimeter, for example, the value is 0.01.
This value can be used, for example, when reading the mesh if the mesh format supports the notion of length unit.
Implements Arcane::ICodeService.
Definition at line 60 of file CodeService.h.
|
inlineoverridevirtual |
Parses the command line arguments.
The array args only contains arguments that have not been interpreted by Arcane.
Recognized arguments must be removed from the list.
| true | if the execution must stop, |
| false | if it continues normally |
Implements Arcane::ICodeService.
Definition at line 54 of file CodeService.h.
|
overridevirtual |
|
inlineoverridevirtual |
Interface of this service (normally this).
Implements Arcane::IService.
Definition at line 66 of file CodeService.h.
|
overridevirtual |
|
overridevirtual |
Returns the list of file extensions processed by the instance. The extension does not include the '.'.
Implements Arcane::ICodeService.
Definition at line 105 of file CodeService.cc.