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
25namespace Arcane
26{
27
28/*---------------------------------------------------------------------------*/
29/*---------------------------------------------------------------------------*/
37class ARCANE_IMPL_EXPORT ArcaneMainExecInfo
38{
39 public:
41 : m_app_info(app_info), m_main_factory(factory){}
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:
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
Informations pour construire une instance de IApplication.
Informations sur une application.
const ApplicationInfo & m_app_info
ATTENTION: référence.
Interface de la classe de gestion du code.
Definition IArcaneMain.h:54
Interface d'un fonctor pour exécuter du code directement après la création d'un sous-domaine sans pas...
Manufacture des classes d'Arcane.
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition Lima.cc:120
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-