14#include "arcane/DotNetRuntimeInitialisationInfo.h"
16#include "arcane/utils/String.h"
17#include "arcane/utils/Property.h"
31 bool m_is_using_dotnet_runtime =
false;
32 String m_main_assembly_name;
33 String m_execute_method_name;
34 String m_execute_class_name;
41template<
typename V>
void DotNetRuntimeInitialisationInfo::
42_applyPropertyVisitor(V& p)
45 p << b.addString(
"MainAssemblyName")
46 .addDescription(
"Name of the assembly to load at startup")
47 .addCommandLineArgument(
"DotNetMainAssemblyName")
48 .addGetter([](
auto a) {
return a.x.mainAssemblyName(); })
49 .addSetter([](
auto a) { a.x.setMainAssemblyName(a.v); });
51 p << b.addString(
"ExecuteMethodName")
52 .addDescription(
"Name of the method to execute")
53 .addCommandLineArgument(
"DotNetExecuteMethodName")
54 .addGetter([](
auto a) {
return a.x.executeMethodName(); })
55 .addSetter([](
auto a) { a.x.setExecuteMethodName(a.v); });
57 p << b.addString(
"ExecuteClassName")
58 .addDescription(
"Name of the class containing the methode to execute")
59 .addCommandLineArgument(
"DotNetExecuteClassName")
60 .addGetter([](
auto a) {
return a.x.executeClassName(); })
61 .addSetter([](
auto a) { a.x.setExecuteClassName(a.v); });
63 p << b.addString(
"EmbeddedRuntime")
64 .addDescription(
"Name of the dotnet runtime ('coreclr', 'mono') to use")
65 .addCommandLineArgument(
"DotNetEmbeddedRuntime")
66 .addGetter([](
auto a) {
return a.x.embeddedRuntime(); })
67 .addSetter([](
auto a) { a.x.setEmbeddedRuntime(a.v); });
69 p << b.addBool(
"UsingDotNet")
70 .addDescription(
"Set/Unset the loading of the '.Net' runtime with 'coreclr'")
71 .addCommandLineArgument(
"UsingDotNet")
72 .addGetter([](
auto a) {
return a.x.isUsingDotNetRuntime(); })
73 .addSetter([](
auto a) {
74 a.x.setIsUsingDotNetRuntime(a.v);
75 a.x.setEmbeddedRuntime(
"coreclr");
82DotNetRuntimeInitialisationInfo::
83DotNetRuntimeInitialisationInfo()
91DotNetRuntimeInitialisationInfo::
92DotNetRuntimeInitialisationInfo(
const DotNetRuntimeInitialisationInfo& rhs)
93: m_p(new Impl(*rhs.m_p))
100DotNetRuntimeInitialisationInfo& DotNetRuntimeInitialisationInfo::
101operator=(
const DotNetRuntimeInitialisationInfo& rhs)
105 m_p =
new Impl(*(rhs.m_p));
113DotNetRuntimeInitialisationInfo::
114~DotNetRuntimeInitialisationInfo()
125bool DotNetRuntimeInitialisationInfo::
126isUsingDotNetRuntime()
const
128 return m_p->m_is_using_dotnet_runtime;
131void DotNetRuntimeInitialisationInfo::
132setIsUsingDotNetRuntime(
bool v)
134 m_p->m_is_using_dotnet_runtime = v;
140String DotNetRuntimeInitialisationInfo::
141mainAssemblyName()
const
143 return m_p->m_main_assembly_name;
146void DotNetRuntimeInitialisationInfo::
147setMainAssemblyName(StringView v)
149 m_p->m_main_assembly_name = v;
151 setIsUsingDotNetRuntime(
true);
157String DotNetRuntimeInitialisationInfo::
158executeClassName()
const
160 return m_p->m_execute_class_name;
163void DotNetRuntimeInitialisationInfo::
164setExecuteClassName(StringView v)
166 m_p->m_execute_class_name = v;
172String DotNetRuntimeInitialisationInfo::
173executeMethodName()
const
175 return m_p->m_execute_method_name;
178void DotNetRuntimeInitialisationInfo::
179setExecuteMethodName(StringView v)
181 m_p->m_execute_method_name = v;
187String DotNetRuntimeInitialisationInfo::
188embeddedRuntime()
const
190 return m_p->m_embedded_runtime;
196 m_p->m_embedded_runtime = v;
Informations pour l'initialisation du runtime '.Net'.
void setEmbeddedRuntime(StringView name)
Nom du runtime pour le mode embarqué ('mono' ou 'coreclr')
Vue sur une chaîne de caractères UTF-8.
Chaîne de caractères unicode.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-