Application information. More...
#include <arcane/utils/ApplicationInfo.h>
Public Member Functions | |
| ApplicationInfo (int *argc, char ***argv, const String &name, const VersionInfo &version) | |
| ApplicationInfo (const StringList &args, const String &name, const VersionInfo &version) | |
| ApplicationInfo (const CommandLineArguments &args, const String &name, const VersionInfo &version) | |
| ApplicationInfo (const ApplicationInfo &rhs) | |
| ApplicationInfo & | operator= (const ApplicationInfo &rhs) |
| const String & | applicationName () const |
| Application name. | |
| const VersionInfo & | version () const |
| Version number. | |
| const VersionInfo & | codeVersion () const |
| Version number. | |
| const String & | dataOsDir () const |
| Returns the path where OS-dependent data files are located. | |
| const String & | dataDir () const |
| Returns the path where data files are located. | |
| int | versionMajor () const |
| Returns the major version number of the application. | |
| int | versionMinor () const |
| Returns the minor version number of the application. | |
| int | versionPatch () const |
| Returns the patch version number of the application. | |
| bool | isDebug () const |
| Returns true if running in debug mode. | |
| const String & | codeName () const |
| Returns the name of the calculation code linked to the application. | |
| const String & | targetFullName () const |
| Returns the full target name. | |
| int * | commandLineArgc () const |
| char *** | commandLineArgv () const |
| void | args (StringList &args) const |
| Fills args with command line arguments. | |
| const CommandLineArguments & | commandLineArguments () const |
| Command line arguments. | |
| void | addDynamicLibrary (const String &lib_name) |
| Adds the library lib_name to the list of dynamically loaded libraries. | |
| StringCollection | dynamicLibrariesName () const |
| List of dynamic libraries. | |
| void | setDataOsDir (const String &v) |
| Sets the path where OS-dependent data files are located. | |
| void | setDataDir (const String &v) |
| Sets the path where data files are located. | |
| void | setVersionInfo (const VersionInfo &version_info) |
| Sets the code version number. | |
| void | setApplicationName (const String &v) |
| Sets the application name. | |
| void | setCodeVersion (const VersionInfo &version_info) |
| Sets the version number. | |
| void | setCodeName (const String &code_name) |
| Sets the code name. | |
| void | setCommandLineArguments (const CommandLineArguments &args) |
| Sets the command line arguments. | |
| void | setIsDebug (bool v) |
| Sets the debug state. | |
| void | setRuntimeConfigFileContent (ByteConstSpan content) |
| Sets the application configuration file content. | |
| ByteConstSpan | runtimeConfigFileContent () const |
| Application configuration file content. | |
| void | addParameterLine (const String &line) |
| Adds an Arcane parameter to the command line. | |
Public Attributes | |
| int * | m_argc |
| Number of command line arguments. | |
| char *** | m_argv |
| Array of command line arguments. | |
Application information.
Definition at line 39 of file ApplicationInfo.h.
| Arcane::ApplicationInfo::ApplicationInfo | ( | ) |
Definition at line 58 of file ApplicationInfo.cc.
| Arcane::ApplicationInfo::ApplicationInfo | ( | int * | argc, |
| char *** | argv, | ||
| const String & | name, | ||
| const VersionInfo & | version ) |
Definition at line 70 of file ApplicationInfo.cc.
| Arcane::ApplicationInfo::ApplicationInfo | ( | const StringList & | args, |
| const String & | name, | ||
| const VersionInfo & | version ) |
Definition at line 82 of file ApplicationInfo.cc.
| Arcane::ApplicationInfo::ApplicationInfo | ( | const CommandLineArguments & | args, |
| const String & | name, | ||
| const VersionInfo & | version ) |
Definition at line 95 of file ApplicationInfo.cc.
| Arcane::ApplicationInfo::ApplicationInfo | ( | const ApplicationInfo & | rhs | ) |
Definition at line 108 of file ApplicationInfo.cc.
| Arcane::ApplicationInfo::~ApplicationInfo | ( | ) |
Definition at line 135 of file ApplicationInfo.cc.
| void Arcane::ApplicationInfo::addDynamicLibrary | ( | const String & | lib_name | ) |
Adds the library lib_name to the list of dynamically loaded libraries.
lib_name must be a name, without path and without extension. For example, my_lib is valid but not libtoto.so, nor /tmp/toto.
Definition at line 347 of file ApplicationInfo.cc.
| void Arcane::ApplicationInfo::addParameterLine | ( | const String & | line | ) |
Adds an Arcane parameter to the command line.
Definition at line 438 of file ApplicationInfo.cc.
| const String & Arcane::ApplicationInfo::applicationName | ( | ) | const |
Application name.
Definition at line 215 of file ApplicationInfo.cc.
| void Arcane::ApplicationInfo::args | ( | StringList & | args | ) | const |
Fills args with command line arguments.
Definition at line 338 of file ApplicationInfo.cc.
| const String & Arcane::ApplicationInfo::codeName | ( | ) | const |
Returns the name of the calculation code linked to the application.
Definition at line 302 of file ApplicationInfo.cc.
| const VersionInfo & Arcane::ApplicationInfo::codeVersion | ( | ) | const |
| int * Arcane::ApplicationInfo::commandLineArgc | ( | ) | const |
Definition at line 320 of file ApplicationInfo.cc.
| const CommandLineArguments & Arcane::ApplicationInfo::commandLineArguments | ( | ) | const |
Command line arguments.
Definition at line 365 of file ApplicationInfo.cc.
Referenced by Arcane::ArcaneLauncher::init(), and Arcane::ArcaneLauncher::needHelp().
| char *** Arcane::ApplicationInfo::commandLineArgv | ( | ) | const |
Definition at line 329 of file ApplicationInfo.cc.
| const String & Arcane::ApplicationInfo::dataDir | ( | ) | const |
Returns the path where data files are located.
Definition at line 248 of file ApplicationInfo.cc.
| const String & Arcane::ApplicationInfo::dataOsDir | ( | ) | const |
Returns the path where OS-dependent data files are located.
Definition at line 233 of file ApplicationInfo.cc.
| StringCollection Arcane::ApplicationInfo::dynamicLibrariesName | ( | ) | const |
List of dynamic libraries.
Definition at line 356 of file ApplicationInfo.cc.
| bool Arcane::ApplicationInfo::isDebug | ( | ) | const |
Returns true if running in debug mode.
Definition at line 293 of file ApplicationInfo.cc.
| ApplicationInfo & Arcane::ApplicationInfo::operator= | ( | const ApplicationInfo & | rhs | ) |
Definition at line 120 of file ApplicationInfo.cc.
| ByteConstSpan Arcane::ApplicationInfo::runtimeConfigFileContent | ( | ) | const |
Application configuration file content.
Definition at line 429 of file ApplicationInfo.cc.
| void Arcane::ApplicationInfo::setApplicationName | ( | const String & | v | ) |
Sets the application name.
Definition at line 374 of file ApplicationInfo.cc.
Referenced by Arcane::ApplicationBuildInfo::setApplicationName().
| void Arcane::ApplicationInfo::setCodeName | ( | const String & | code_name | ) |
Sets the code name.
Definition at line 392 of file ApplicationInfo.cc.
| void Arcane::ApplicationInfo::setCodeVersion | ( | const VersionInfo & | version_info | ) |
Sets the version number.
Definition at line 383 of file ApplicationInfo.cc.
References version().
Referenced by setVersionInfo().
| void Arcane::ApplicationInfo::setCommandLineArguments | ( | const CommandLineArguments & | args | ) |
Sets the command line arguments.
Calling this method modifies the values of m_argv and m_argc.
Definition at line 401 of file ApplicationInfo.cc.
| void Arcane::ApplicationInfo::setDataDir | ( | const String & | v | ) |
Sets the path where data files are located.
Definition at line 257 of file ApplicationInfo.cc.
| void Arcane::ApplicationInfo::setDataOsDir | ( | const String & | v | ) |
Sets the path where OS-dependent data files are located.
Definition at line 239 of file ApplicationInfo.cc.
| void Arcane::ApplicationInfo::setIsDebug | ( | bool | v | ) |
Sets the debug state.
Definition at line 411 of file ApplicationInfo.cc.
| void Arcane::ApplicationInfo::setRuntimeConfigFileContent | ( | ByteConstSpan | content | ) |
Sets the application configuration file content.
Definition at line 420 of file ApplicationInfo.cc.
|
inline |
Sets the code version number.
Definition at line 115 of file ApplicationInfo.h.
References setCodeVersion(), and setVersionInfo().
Referenced by setVersionInfo().
| const String & Arcane::ApplicationInfo::targetFullName | ( | ) | const |
Returns the full target name.
Definition at line 311 of file ApplicationInfo.cc.
|
inline |
Version number.
Definition at line 57 of file ApplicationInfo.h.
References codeVersion(), and version().
Referenced by setCodeVersion(), and version().
| int Arcane::ApplicationInfo::versionMajor | ( | ) | const |
Returns the major version number of the application.
Definition at line 266 of file ApplicationInfo.cc.
| int Arcane::ApplicationInfo::versionMinor | ( | ) | const |
Returns the minor version number of the application.
Definition at line 275 of file ApplicationInfo.cc.
| int Arcane::ApplicationInfo::versionPatch | ( | ) | const |
Returns the patch version number of the application.
Definition at line 284 of file ApplicationInfo.cc.
| int* Arcane::ApplicationInfo::m_argc |
Number of command line arguments.
Definition at line 152 of file ApplicationInfo.h.
| char*** Arcane::ApplicationInfo::m_argv |
Array of command line arguments.
Definition at line 154 of file ApplicationInfo.h.