Interface of the code management class. More...
#include <arcane/core/IArcaneMain.h>
Public Member Functions | |
| virtual | ~IArcaneMain () |
| Releases resources. | |
| virtual void | build ()=0 |
| Constructs the class members. The instance is not usable until this method has been called. This method must be called before initialize(). | |
| virtual void | initialize ()=0 |
| Initializes the instance. The instance is not usable until this method has been called. | |
| virtual bool | parseArgs (StringList args)=0 |
| Parses arguments. | |
| virtual int | execute ()=0 |
| Starts execution. This method only returns when the program exits. | |
| virtual void | finalize ()=0 |
| Performs the last operations before instance destruction. | |
| virtual int | errorCode () const =0 |
| Execution error code. | |
| virtual void | setErrorCode (int errcode)=0 |
| Sets the return code. | |
| virtual void | doAbort ()=0 |
| Performs an abort. | |
| virtual const ApplicationInfo & | applicationInfo () const =0 |
| Executable information. | |
| virtual const ApplicationBuildInfo & | applicationBuildInfo () const =0 |
| Information to build the IApplication instance. | |
| virtual const DotNetRuntimeInitialisationInfo & | dotnetRuntimeInitialisationInfo () const =0 |
| .Net runtime initialization information. | |
| virtual const AcceleratorRuntimeInitialisationInfo & | acceleratorRuntimeInitialisationInfo () const =0 |
| Runtime initialization information for accelerators. | |
| virtual IMainFactory * | mainFactory () const =0 |
| Main factory. | |
| virtual IApplication * | application () const =0 |
| Application. | |
| virtual bool | hasGarbageCollector () const =0 |
| Indicates that certain objects are managed via a garbage collector. | |
| virtual ServiceFactoryInfoCollection | registeredServiceFactoryInfos ()=0 |
| List of registered service factories. | |
| virtual ModuleFactoryInfoCollection | registeredModuleFactoryInfos ()=0 |
| List of registered module factories. | |
| virtual void | setDirectExecuteFunctor (IDirectSubDomainExecuteFunctor *f)=0 |
Static Public Member Functions | |
| static IArcaneMain * | arcaneMain () |
| static void | setArcaneMain (IArcaneMain *arcane_main) |
Static Private Attributes | |
| static IArcaneMain * | global_arcane_main = 0 |
Interface of the code management class.
This virtual class is used for the creation and initialization of instances of code managers. It also controls the execution of a case.
An instance of this class is created via the method IMainFactory::createArcaneMain(), called by IMainFactory::arcaneMain().
The implementation must at least take into account the following aspects.
Definition at line 54 of file IArcaneMain.h.
|
inlinevirtual |
Releases resources.
Definition at line 59 of file IArcaneMain.h.
|
pure virtual |
Runtime initialization information for accelerators.
Implemented in Arcane::ArcaneMain.
|
pure virtual |
Implemented in Arcane::ArcaneMain.
Referenced by Arcane::ArcaneMain::callFunctorWithCatchedException().
|
pure virtual |
Information to build the IApplication instance.
Implemented in Arcane::ArcaneMain.
|
pure virtual |
Executable information.
Implemented in Arcane::ArcaneMain.
|
static |
Retrieves the global instance.
Definition at line 165 of file InterfaceImpl.cc.
Referenced by Arcane::MpiBatchMainFactory::exec(), and Arcane::ArcaneMain::run().
|
pure virtual |
Constructs the class members. The instance is not usable until this method has been called. This method must be called before initialize().
Implemented in Arcane::ArcaneMain, and Arcane::ArcaneMainBatch.
|
pure virtual |
Performs an abort.
Implemented in Arcane::ArcaneMain, and Arcane::ArcaneMainBatch.
|
pure virtual |
.Net runtime initialization information.
Implemented in Arcane::ArcaneMain.
|
pure virtual |
Execution error code.
Implemented in Arcane::ArcaneMain.
|
pure virtual |
Starts execution. This method only returns when the program exits.
Implemented in Arcane::ArcaneMain, and Arcane::ArcaneMainBatch.
|
pure virtual |
Performs the last operations before instance destruction.
Implemented in Arcane::ArcaneMain, and Arcane::ArcaneMainBatch.
|
pure virtual |
Indicates that certain objects are managed via a garbage collector.
Implemented in Arcane::ArcaneMain.
|
pure virtual |
Initializes the instance. The instance is not usable until this method has been called.
Implemented in Arcane::ArcaneMain, and Arcane::ArcaneMainBatch.
|
pure virtual |
Main factory.
Implemented in Arcane::ArcaneMain.
|
pure virtual |
Parses arguments.
Recognized arguments must be removed from the list.
| true | if execution must stop, |
| false | if it continues normally |
Implemented in Arcane::ArcaneMain, and Arcane::ArcaneMainBatch.
|
pure virtual |
List of registered module factories.
Implemented in Arcane::ArcaneMain.
|
pure virtual |
List of registered service factories.
Implemented in Arcane::ArcaneMain.
|
static |
.
Definition at line 174 of file InterfaceImpl.cc.
Referenced by Arcane::ArcaneMainExecInfo::initialize().
|
pure virtual |
Sets the return code.
Implemented in Arcane::ArcaneMain.
|
staticprivate |
Definition at line 77 of file IArcaneMain.h.