15#include "arcane/CodeService.h"
16#include "arcane/utils/ArcanePrecomp.h"
18#include "arcane/ISession.h"
19#include "arcane/ISubDomain.h"
20#include "arcane/IParallelMng.h"
21#include "arcane/Service.h"
23#include "arcane/impl/TimeLoopReader.h"
24#include "arcane/impl/ArcaneSession.h"
34class ArcaneCodeService
39 ArcaneCodeService(
const ServiceBuildInfo& sbi);
40 virtual ~ArcaneCodeService();
65ArcaneCodeService::service_info(
"ArcaneCodeService",VersionInfo(1,0,1),
66 IServiceInfo::Dim1|IServiceInfo::Dim2|IServiceInfo::Dim3);
71extern "C++" ARCANE_IMPL_EXPORT Ref<ICodeService>
72createArcaneCodeService(IApplication* app)
74 ServiceBuildInfoBase s(app);
75 auto x =
new ArcaneCodeService(ServiceBuildInfo(&ArcaneCodeService::service_info,s));
77 return makeRef<ICodeService>(x);
84ArcaneCodeService(
const ServiceBuildInfo& sbi)
87 _addExtension(String(
"arc"));
101void ArcaneCodeService::
102_preInitializeSubDomain(ISubDomain*)
110initCase(ISubDomain* sub_domain,
bool is_continue)
113 TimeLoopReader stl(_application());
115 stl.registerTimeLoops(sub_domain);
116 stl.setUsedTimeLoop(sub_domain);
119 if (sub_domain->parallelMng()->isMasterIO())
120 sub_domain->session()->writeExecInfoFile();
129 ArcaneSession* session =
new ArcaneSession(_application());
virtual void initCase(ISubDomain *sub_domain, bool is_continue)
Initialise la session session.
virtual bool parseArgs(StringList &args)
Analyse les arguments de la ligne de commandes.
virtual bool parseArgs(StringList &args)
Analyse les arguments de la ligne de commandes.
virtual ISession * createSession()
Crée une session.
virtual ISession * createSession()
Crée une session.
virtual void initCase(ISubDomain *sub_domain, bool is_continue)
Initialise la session session.
virtual void initCase(ISubDomain *sub_domain, bool is_continue)
Initialise la session session.
virtual void addSession(ISession *session)=0
Ajoute la session session.
Interface d'une session d'exécution d'un cas.
Interface du gestionnaire d'un sous-domaine.
Informations d'un service.
Lecteur des fichiers de maillage via la bibliothèque LIMA.
List< String > StringList
Tableau de chaînes de caractères unicode.