Arcane  4.1.12.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
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
28class ISubDomain;
29class ApplicationInfo;
32
33/*---------------------------------------------------------------------------*/
34/*---------------------------------------------------------------------------*/
35
51class ARCANE_IMPL_EXPORT ArcaneSimpleExecutor
52{
53 class Impl;
54
55 public:
56
57 ArcaneSimpleExecutor();
58 ArcaneSimpleExecutor(const ArcaneSimpleExecutor&) = delete;
59 ~ArcaneSimpleExecutor() noexcept(false);
60 const ArcaneSimpleExecutor& operator=(const ArcaneSimpleExecutor&) = delete;
61
62 public:
63
64 ApplicationBuildInfo& applicationBuildInfo();
65 const ApplicationBuildInfo& applicationBuildInfo() const;
66
67 int initialize();
68 ISubDomain* createSubDomain(const String& case_file_name);
69 int runCode(IFunctor* f);
70
71 private:
72
73 Impl* m_p;
74
75 private:
76
77 void _checkInit();
79};
80
81/*---------------------------------------------------------------------------*/
82/*---------------------------------------------------------------------------*/
83
84} // End namespace Arcane
85
86/*---------------------------------------------------------------------------*/
87/*---------------------------------------------------------------------------*/
88
89#endif
Declarations of types used in Arcane.
Information for constructing an instance of IApplication.
Application information.
void _setDefaultVerbosityLevel(Integer level)
Sets the trace level to level if it is not set.
Interface of the subdomain manager.
Definition ISubDomain.h:75
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Int32 Integer
Type representing an integer.