Arcane
v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
ArcaneMainExecInfo.h
1
// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2
//-----------------------------------------------------------------------------
3
// Copyright 2000-2022 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4
// See the top-level COPYRIGHT file for details.
5
// SPDX-License-Identifier: Apache-2.0
6
//-----------------------------------------------------------------------------
7
/*---------------------------------------------------------------------------*/
8
/* ArcaneMainExecInfo.h (C) 2000-2019 */
9
/* */
10
/* Classe gérant l'exécution. */
11
/*---------------------------------------------------------------------------*/
12
#ifndef ARCANE_IMPL_INTERNAL_ARCANEMAINEXECINFO_H
13
#define ARCANE_IMPL_INTERNAL_ARCANEMAINEXECINFO_H
14
/*---------------------------------------------------------------------------*/
15
/*---------------------------------------------------------------------------*/
16
17
#include "arcane/utils/List.h"
18
#include "arcane/utils/IFunctor.h"
19
#include "arcane/impl/ArcaneMain.h"
20
#include "arcane/ApplicationBuildInfo.h"
21
22
/*---------------------------------------------------------------------------*/
23
/*---------------------------------------------------------------------------*/
24
25
namespace
Arcane
26
{
27
28
/*---------------------------------------------------------------------------*/
29
/*---------------------------------------------------------------------------*/
37
class
ARCANE_IMPL_EXPORT
ArcaneMainExecInfo
38
{
39
public
:
40
ArcaneMainExecInfo
(
const
ApplicationInfo
&
app_info
,
IMainFactory
* factory)
41
: m_app_info(
app_info
), m_main_factory(factory){}
42
ArcaneMainExecInfo
(
const
ApplicationInfo
&
app_info
,
const
ApplicationBuildInfo
&
build_info
,
43
IMainFactory
* factory)
44
: m_app_info(
app_info
), m_main_factory(factory),
45
m_application_build_info(
build_info
), m_has_build_info(
true
){}
46
public
:
47
int
initialize();
48
void
execute();
49
void
finalize();
50
int
returnValue()
const
{
return
m_ret_val; }
51
IArcaneMain
* arcaneMainClass()
const
{
return
m_exec_main; }
52
void
setDirectExecFunctor(
IDirectSubDomainExecuteFunctor
*
func
) { m_direct_exec_functor =
func
; }
53
private
:
54
const
ApplicationInfo
&
m_app_info
;
55
IMainFactory
* m_main_factory;
56
ApplicationBuildInfo
m_application_build_info;
57
bool
m_has_build_info =
false
;
58
IArcaneMain
* m_exec_main =
nullptr
;
59
int
m_ret_val = 0;
60
bool
m_clean_abort =
false
;
61
IDirectSubDomainExecuteFunctor
* m_direct_exec_functor =
nullptr
;
62
};
63
64
/*---------------------------------------------------------------------------*/
65
/*---------------------------------------------------------------------------*/
66
67
}
// End namespace Arcane
68
69
/*---------------------------------------------------------------------------*/
70
/*---------------------------------------------------------------------------*/
71
72
#endif
Arcane::ApplicationBuildInfo
Informations pour construire une instance de IApplication.
Definition
ApplicationBuildInfo.h:32
Arcane::ApplicationInfo
Informations sur une application.
Definition
ApplicationInfo.h:40
Arcane::ArcaneMainExecInfo
Infos d'exécution.
Definition
ArcaneMainExecInfo.h:38
Arcane::ArcaneMainExecInfo::m_app_info
const ApplicationInfo & m_app_info
ATTENTION: référence.
Definition
ArcaneMainExecInfo.h:54
Arcane::IArcaneMain
Interface de la classe de gestion du code.
Definition
IArcaneMain.h:54
Arcane::IDirectSubDomainExecuteFunctor
Interface d'un fonctor pour exécuter du code directement après la création d'un sous-domaine sans pas...
Definition
IDirectSubDomainExecuteFunctor.h:33
Arcane::IMainFactory
Manufacture des classes d'Arcane.
Definition
IMainFactory.h:93
Arcane::LimaWrapper
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition
Lima.cc:120
Arcane
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
Definition
AcceleratorGlobal.h:36
arcane
impl
internal
ArcaneMainExecInfo.h
Généré le Lundi 18 Novembre 2024 03:01:32 pour Arcane par
1.9.8