Arcane  v3.15.3.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
CommandLineArguments.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2025 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/* CommandLineArguments.h (C) 2000-2025 */
9/* */
10/* Arguments de la ligne de commande. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_UTILS_COMMANDLINEARGUMENTS_H
13#define ARCANE_UTILS_COMMANDLINEARGUMENTS_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arccore/base/ReferenceCounter.h"
18
20
21/*---------------------------------------------------------------------------*/
22/*---------------------------------------------------------------------------*/
23
24namespace Arcane
25{
26class ParameterList;
27
28/*---------------------------------------------------------------------------*/
29/*---------------------------------------------------------------------------*/
48class ARCANE_UTILS_EXPORT CommandLineArguments
49{
50 class Impl;
51
52 public:
53
55 CommandLineArguments(int* argc, char*** argv);
57 explicit CommandLineArguments(const StringList& args);
61
62 public:
63
64 int* commandLineArgc() const;
65 char*** commandLineArgv() const;
66
68 void fillArgs(StringList& args) const;
69
75 String getParameter(const String& param_name) const;
76
81 void addParameterLine(const String& line);
82
89 void fillParameters(StringList& param_names,StringList& values) const;
90
92 const ParameterList& parameters() const;
93
96
97 private:
98
100};
101
102/*---------------------------------------------------------------------------*/
103/*---------------------------------------------------------------------------*/
104
105} // End namespace Arcane
106
107/*---------------------------------------------------------------------------*/
108/*---------------------------------------------------------------------------*/
109
110#endif
Déclarations des types utilisés dans Arcane.
Arguments de la ligne de commande.
ParameterList & parameters()
Liste des paramètres.
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition Lima.cc:149
Liste de paramètres.
Encapsulation d'un pointeur avec compteur de référence.
Chaîne de caractères unicode.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-