Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
ApplicationBuildInfo.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2026 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/* ApplicationBuildInfo.h (C) 2000-2026 */
9/* */
10/* Information for constructing an instance of IApplication. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_UTILS_APPLICATIONBUILDINFO_H
13#define ARCANE_UTILS_APPLICATIONBUILDINFO_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18#include "arccore/common/ArccoreApplicationBuildInfo.h"
19
20/*---------------------------------------------------------------------------*/
21/*---------------------------------------------------------------------------*/
22
23namespace Arcane
24{
26
27/*---------------------------------------------------------------------------*/
28/*---------------------------------------------------------------------------*/
29
33class ARCANE_CORE_EXPORT ApplicationBuildInfo
34: public ArccoreApplicationBuildInfo
35{
36 class Impl;
37
38 public:
39
40 ApplicationBuildInfo();
41 ApplicationBuildInfo(const ApplicationBuildInfo& rhs);
42 ~ApplicationBuildInfo();
43 ApplicationBuildInfo& operator=(const ApplicationBuildInfo& rhs);
44
45 public:
46
47 void setMessagePassingService(const String& name);
48 String messagePassingService() const;
49
50 Int32 nbSharedMemorySubDomain() const;
51 void setNbSharedMemorySubDomain(Int32 v);
52
53 Int32 nbReplicationSubDomain() const;
54 void setNbReplicationSubDomain(Int32 v);
55
56 Int32 nbProcessusSubDomain() const;
57 void setNbProcessusSubDomain(Int32 v);
58
63 void setConfigFileName(const String& name);
64
74 String configFileName() const;
75
80 void setOutputLevel(Int32 v);
81 Int32 outputLevel() const;
82
88 Int32 verbosityLevel() const;
89
90 Int32 minimalVerbosityLevel() const;
91 void setMinimalVerbosityLevel(Int32 v);
92
93 bool isMasterHasOutputFile() const;
94 void setIsMasterHasOutputFile(bool v);
95
103 void setOutputDirectory(const String& name);
104 String outputDirectory() const;
105
106 public:
107
109 void setApplicationName(const String& v);
111 String applicationName() const;
112
114 void setCodeVersion(const VersionInfo& version_info);
116 VersionInfo codeVersion() const;
117
119 void setCodeName(const String& code_name);
121 String codeName() const;
122
125
127 void threadBindingStrategy(const String& v);
128
133
134 public:
135
141 String internalDefaultMessagePassingService() const;
142
143 public:
144
152 void addDynamicLibrary(const String& lib_name);
153
154 public:
155
163 ARCANE_DEPRECATED_REASON("Use parseArgumentsAndSetDefaultsValues() instead")
168
169 public:
170
171 ApplicationInfo& _internalApplicationInfo();
172 const ApplicationInfo& _internalApplicationInfo() const;
173
174 public:
175
176 void setDefaultValues() override;
177 void setDefaultServices() override;
178
179 private:
180
181 Impl* m_p = nullptr;
182};
183
184/*---------------------------------------------------------------------------*/
185/*---------------------------------------------------------------------------*/
186
187} // End namespace Arcane
188
189/*---------------------------------------------------------------------------*/
190/*---------------------------------------------------------------------------*/
191
192#endif
Declarations of types used in Arcane.
void setVerbosityLevel(Int32 v)
Sets the message verbosity level of reduced listing files.
void setOutputDirectory(const String &name)
Sets the directory containing the various simulation outputs.
VersionInfo codeVersion() const
Version number.
void setOutputLevel(Int32 v)
Sets the message verbosity level on standard output.
String configFileName() const
Name of the code configuration file.
void addDynamicLibrary(const String &lib_name)
Adds the library lib_name to the list of dynamically loaded libraries.
void internalSetDefaultMessagePassingService(const String &name)
Default message passing manager name. Must only be modified by Arcane.
void setCodeName(const String &code_name)
Sets the code name.
String applicationName() const
Application name.
void parseArguments(const CommandLineArguments &args)
Parses the arguments in args.
void setApplicationName(const String &v)
Sets the application name.
String codeName() const
Returns the code name.
CaseDatasetSource & caseDatasetSource()
Dataset source.
void setConfigFileName(const String &name)
Sets the code configuration file.
void setCodeVersion(const VersionInfo &version_info)
Sets the code version.
String threadBindingStrategy() const
Strategy for binding task threads.
Application information.
void parseArgumentsAndSetDefaultsValues(const CommandLineArguments &args)
Parses the arguments in args.
Source of a case dataset.
Information about a version.
Definition VersionInfo.h:47
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
std::int32_t Int32
Signed integer type of 32 bits.