Arcane
4.2.1.0
Developer documentation
Loading...
Searching...
No Matches
ArcaneSimpleExecutor.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
/* ArcaneSimpleExecutor.h (C) 2000-2026 */
9
/* */
10
/* Class for executing code directly via Arcane. */
11
/*---------------------------------------------------------------------------*/
12
#ifndef ARCANE_IMPL_INTERNALINFOSDUMPER_H
13
#define ARCANE_IMPL_INTERNALINFOSDUMPER_H
14
/*---------------------------------------------------------------------------*/
15
/*---------------------------------------------------------------------------*/
16
17
#include "
arcane/utils/UtilsTypes.h
"
18
19
/*---------------------------------------------------------------------------*/
20
/*---------------------------------------------------------------------------*/
21
22
namespace
Arcane
23
{
24
25
/*---------------------------------------------------------------------------*/
26
/*---------------------------------------------------------------------------*/
27
28
class
ISubDomain
;
29
class
ApplicationInfo
;
30
class
ApplicationBuildInfo
;
31
class
CommandLineArguments
;
32
33
/*---------------------------------------------------------------------------*/
34
/*---------------------------------------------------------------------------*/
53
class
ARCANE_IMPL_EXPORT ArcaneSimpleExecutor
54
{
55
class
Impl
;
56
57
public
:
58
59
ArcaneSimpleExecutor();
60
ArcaneSimpleExecutor(
const
ArcaneSimpleExecutor&) =
delete
;
61
~ArcaneSimpleExecutor()
noexcept
(
false
);
62
const
ArcaneSimpleExecutor& operator=(
const
ArcaneSimpleExecutor&) =
delete
;
63
64
public
:
65
66
ApplicationBuildInfo
& applicationBuildInfo();
67
const
ApplicationBuildInfo
& applicationBuildInfo()
const
;
68
69
int
initialize();
70
ISubDomain
* createSubDomain(
const
String
& case_file_name);
71
ISubDomain
* createSubDomain(
const
String
& case_file_name,
72
Span<const std::byte>
file_content);
73
int
runCode(
IFunctor
* f);
74
75
private
:
76
77
Impl
* m_p;
78
79
private
:
80
81
void
_checkInit();
82
void
_setDefaultVerbosityLevel
(
Integer
level);
83
};
84
85
/*---------------------------------------------------------------------------*/
86
/*---------------------------------------------------------------------------*/
87
88
}
// End namespace Arcane
89
90
/*---------------------------------------------------------------------------*/
91
/*---------------------------------------------------------------------------*/
92
93
#endif
UtilsTypes.h
Declarations of types used in Arcane.
Arcane::ApplicationBuildInfo
Information for constructing an instance of IApplication.
Definition
ApplicationBuildInfo.h:35
Arcane::ApplicationInfo
Application information.
Definition
ApplicationInfo.h:40
Arcane::ArcaneSimpleExecutor::Impl
Definition
ArcaneSimpleExecutor.cc:63
Arcane::ArcaneSimpleExecutor::_setDefaultVerbosityLevel
void _setDefaultVerbosityLevel(Integer level)
Sets the trace level to level if it is not set.
Definition
ArcaneSimpleExecutor.cc:140
Arcane::CommandLineArguments
Command Line Arguments.
Definition
arccore/src/common/arccore/common/CommandLineArguments.h:50
Arcane::IFunctor
Interface of a functor.
Definition
arccore/src/base/arccore/base/IFunctor.h:33
Arcane::ISubDomain
Interface of the subdomain manager.
Definition
ISubDomain.h:75
Arcane::Span
View of an array of elements of type T.
Definition
Span.h:633
Arcane::String
Unicode character string.
Definition
arccore/src/base/arccore/base/String.h:70
Arcane
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Definition
arcane/src/arcane/accelerator/AcceleratorGlobal.h:37
Arcane::Integer
Int32 Integer
Type representing an integer.
Definition
ArccoreGlobal.h:293
arcane
impl
ArcaneSimpleExecutor.h
Generated on
for Arcane by
1.16.1