Arcane
v3.16.0.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
ArcaneDriverMain.cc
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
/* ArcaneDriverMain.cc (C) 2000-2022 */
9
/* */
10
/* Programme principal par défaut. */
11
/*---------------------------------------------------------------------------*/
12
/*---------------------------------------------------------------------------*/
13
14
#include "arcane/utils/CommandLineArguments.h"
15
#include "arcane/utils/ApplicationInfo.h"
16
#include "arcane/utils/Exception.h"
17
18
#include "arcane/impl/ArcaneMain.h"
19
20
using namespace
Arcane
;
21
22
/*---------------------------------------------------------------------------*/
23
/*---------------------------------------------------------------------------*/
24
25
int
26
_mainHelper(
int
argc,
char
* argv[])
27
{
28
ApplicationInfo
& app_info =
ArcaneMain::defaultApplicationInfo
();
29
app_info.
setCommandLineArguments
(
CommandLineArguments
(&argc,&argv));
30
app_info.
setCodeName
(
"ArcaneDriver"
);
31
app_info.
setCodeVersion
(
VersionInfo
(1,0,0));
32
app_info.
addDynamicLibrary
(
"arcane_mpi"
);
33
app_info.
addDynamicLibrary
(
"arcane_ios"
);
34
app_info.
addDynamicLibrary
(
"arcane_std"
);
35
app_info.
addDynamicLibrary
(
"arcane_mesh"
);
36
app_info.
addDynamicLibrary
(
"arcane_cea"
);
37
return
ArcaneMain::run
();
38
}
39
40
/*---------------------------------------------------------------------------*/
41
/*---------------------------------------------------------------------------*/
42
43
int
44
main(
int
argc,
char
* argv[])
45
{
46
int
r = 0;
47
int
r2 =
arcaneCallFunctionAndCatchException
([&](){ r = _mainHelper(argc,argv); });
48
if
(r2!=0)
49
return
r2;
50
return
r;
51
}
52
53
/*---------------------------------------------------------------------------*/
54
/*---------------------------------------------------------------------------*/
Arcane::ApplicationInfo
Informations sur une application.
Definition
ApplicationInfo.h:39
Arcane::ApplicationInfo::setCommandLineArguments
void setCommandLineArguments(const CommandLineArguments &args)
Positionne les arguments de la ligne de commande.
Definition
ApplicationInfo.cc:402
Arcane::ApplicationInfo::setCodeVersion
void setCodeVersion(const VersionInfo &version_info)
Positionne le numéro de version.
Definition
ApplicationInfo.cc:384
Arcane::ApplicationInfo::addDynamicLibrary
void addDynamicLibrary(const String &lib_name)
Ajoute la bibliothèque lib_name à la liste des bibliothèques chargées dynamiquements.
Definition
ApplicationInfo.cc:348
Arcane::ApplicationInfo::setCodeName
void setCodeName(const String &code_name)
Positionne le nom du code.
Definition
ApplicationInfo.cc:393
Arcane::ArcaneMain::run
static int run()
Point d'entrée de l'exécutable dans Arcane.
Definition
ArcaneMain.cc:963
Arcane::ArcaneMain::defaultApplicationInfo
static ApplicationInfo & defaultApplicationInfo()
Infos par défaut de l'application.
Definition
ArcaneMain.cc:818
Arcane::CommandLineArguments
Arguments de la ligne de commande.
Definition
CommandLineArguments.h:49
Arcane::VersionInfo
Informations sur une version.
Definition
VersionInfo.h:46
Arcane
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
Definition
AcceleratorGlobal.h:36
Arcane::arcaneCallFunctionAndCatchException
Integer arcaneCallFunctionAndCatchException(std::function< void()> function)
Definition
arcane/src/arcane/utils/Exception.cc:90
arcane
driver
ArcaneDriverMain.cc
Généré le Lundi 31 Mars 2025 02:53:00 pour Arcane par
1.13.2