Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
AlephTestSchemeFaces_axl.h
1/*---------------------------------------------------------------------------*/
2/*---------------------------------------------------------------------------*/
3// #WARNING#: This file has been generated automatically. Do not edit.
4// Arcane version 1.0 : 11/18/2024 02:52:11
5/*---------------------------------------------------------------------------*/
6/*---------------------------------------------------------------------------*/
7
8#ifndef ARCANE_CASEOPTION_AXLSTAR_ALEPHTESTSCHEMEFACES_H
9#define ARCANE_CASEOPTION_AXLSTAR_ALEPHTESTSCHEMEFACES_H
10
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#include "arcane/utils/String.h"
15
16#include "arcane/CaseOptions.h"
17#include "arcane/CaseOptionsMulti.h"
18#include "arcane/CaseOptionBuildInfo.h"
19#include "arcane/XmlNodeList.h"
20
21/*---------------------------------------------------------------------------*/
22/*---------------------------------------------------------------------------*/
23
26{
27public:
28
29 /*-------------------------------------------------------------------------*/
30 /*--------------------------- Complex Options -----------------------------*/
31 /*-------------------------------------------------------------------------*/
32
33 /*-------------------------------------------------------------------------*/
34 /*--------------------------- Non Complex Options -------------------------*/
35 /*-------------------------------------------------------------------------*/
36
38 : m_case_options(co)
39 , amr(Arcane::CaseOptionBuildInfo(_configList(),
40 /* name */ "amr", _element(),
41 /* default */ "false",
42 /* min-occurs */ 1,
43 /* max-occurs */ 1,
44 /* optional */ false))
45 {
46
47 }
48
49public:
50 // Interfaces for main CaseOptions
51
52 bool getAmr() { return amr(); }
53 Arcane::ICaseFunction* getAmrFunction() { return amr.function(); }
54 Arcane::IStandardFunction* getAmrStandardFunction() { return amr.standardFunction(); }
55
56
57
58 // Interfaces for complex options
59
60
61public:
62
63 Arcane::ICaseOptions* caseOptions() const
64 {
65 return m_case_options.get();
66 }
67
68 Arcane::ICaseOptionList* configList() const
69 {
70 return m_case_options->configList();
71 }
72
73 void setCaseModule(Arcane::IModule* m)
74 {
75 m_case_options->setCaseModule(m);
76 }
77
78 void setCaseServiceInfo(Arcane::IServiceInfo* si)
79 {
80 m_case_options->setCaseServiceInfo(si);
81 }
82
83 void addAlternativeNodeName(const Arcane::String& lang,
84 const Arcane::String& name)
85 {
86 m_case_options->addAlternativeNodeName(lang,name);
87 }
88
89private:
90
91 Arcane::ICaseOptionList* _configList() const { return configList(); }
92 Arcane::XmlNode _element() const { return Arcane::XmlNode(); }
93
94private:
95
96 static Arcane::ICaseOptions* _createCaseOption(Arcane::ICaseMng* cm,Arcane::ICaseOptions* co);
97
99
100public:
101
102
104};
105
106/*---------------------------------------------------------------------------*/
107/*---------------------------------------------------------------------------*/
108
109#endif
110
111
112
113/*---------------------------------------------------------------------------*/
114/*---------------------------------------------------------------------------*/
115// #WARNING#: This file has been generated automatically. Do not edit.
116// Arcane version 1.0 : 11/18/2024 02:52:11
117/*---------------------------------------------------------------------------*/
118/*---------------------------------------------------------------------------*/
119
120#ifndef ARCANE_MODULE_AXLSTAR_ALEPHTESTSCHEMEFACES_H
121#define ARCANE_MODULE_AXLSTAR_ALEPHTESTSCHEMEFACES_H
122
123/*---------------------------------------------------------------------------*/
124/*---------------------------------------------------------------------------*/
125
126#include "arcane/VariableTypes.h"
127#include "arcane/ServiceInfo.h"
128#include "arcane/ISubDomain.h"
129#include "arcane/ServiceBuildInfo.h"
130#include "arcane/ServiceFactory.h"
131#include "arcane/ServiceRegisterer.h"
132#include "arcane/BasicService.h"
133
134#ifndef ARCANE_HAS_SPECIFIC_BASIC_SERVICE
135// Code pour les versions de Arcane avant la 3.8 qui ne possèdent pas les
136// classes de base spécifiques pour les services
137namespace Arcane
138{
139using BasicCaseOptionService = BasicService;
140using BasicSubDomainService = BasicService;
141using BasicMeshService = BasicService;
142}
143#endif
144
145/*---------------------------------------------------------------------------*/
146/*---------------------------------------------------------------------------*/
147
149
150/*---------------------------------------------------------------------------*/
151/*---------------------------------------------------------------------------*/
152
156 , public ArcaneTest::AlephTestScheme
157{
158public:
159 // NOTE GG: attention code dupliqué avec 'ServiceT4CaseAndStrong'. Bien reporter les modifications
160 template <typename ServiceClassType> static void fillServiceInfo(Arcane::ServiceInfo* si)
161 {
162 si->setCaseOptionsFileName("AlephTestSchemeFaces_arcane_aleph_tests");
163 si->setAxlVersion(1.0);
164 si->setDefaultTagName("aleph-test-scheme-faces");
165 si->setAxlContent(getAxlContent());
167 ,ARCANE_SERVICE_INTERFACE(ArcaneTest::AlephTestScheme)
168);
169 }
170
171public:
172
175 : Arcane::BasicCaseOptionService(sbi)
176 , m_options(nullptr)
177 , m_cell_temperature(Arcane::VariableBuildInfo(sbi.meshHandle(), "CellTemperature" ))
178 , m_face_temperature(Arcane::VariableBuildInfo(sbi.meshHandle(), "FaceTemperature" , Arcane::IVariable::PNoDump))
179 , m_cell_matrix_idx(Arcane::VariableBuildInfo(sbi.meshHandle(), "CellMatrixIdx" , Arcane::IVariable::PNoDump| Arcane::IVariable::PNoNeedSync))
180 , m_cell_coefs(Arcane::VariableBuildInfo(sbi.meshHandle(), "CellCoefs" , Arcane::IVariable::PNoDump| Arcane::IVariable::PNoNeedSync))
181 {
183 if (co) {
185 }
186
187 }
188
191 {
192 delete m_options;
193 }
194
195
196public:
197
200
201private:
202
205
206protected:
207
210 Arcane::VariableFaceReal m_face_temperature;
211 Arcane::VariableCellInteger m_cell_matrix_idx;
212 Arcane::VariableCellReal m_cell_coefs;
213private:
214 static Arcane::FileContent getAxlContent()
215 {
216 const Arcane::Byte* content = (const Arcane::Byte*)"";
217 Arcane::Span<const Arcane::Byte> bytes(content,0);
218 int file_version = 1;
219 return Arcane::FileContent(bytes,file_version,"");
220 }
221};
222
223/*---------------------------------------------------------------------------*/
224/*---------------------------------------------------------------------------*/
225
226#define ARCANE_REGISTER_SERVICE_ALEPHTESTSCHEMEFACES(service_name,class_name) \
227 ARCANE_REGISTER_AXL_SERVICE(class_name,Arcane::ServiceProperty(#service_name,Arcane::ST_CaseOption,\
228 Arcane::SFP_None ))
229
230/*---------------------------------------------------------------------------*/
231/*---------------------------------------------------------------------------*/
232
233#endif
234
#define ARCANE_SERVICE_INTERFACE(ainterface)
Macro pour déclarer une interface lors de l'enregistrement d'un service.
Generation de la classe de base du Service.
CaseOptionsAlephTestSchemeFaces * m_options
Options du jeu de données du service.
Arcane::VariableCellReal m_cell_temperature
Variables du service.
ArcaneAlephTestSchemeFacesObject(const Arcane::ServiceBuildInfo &sbi)
Constructeur.
virtual ~ArcaneAlephTestSchemeFacesObject()
Destructeur.
CaseOptionsAlephTestSchemeFaces * options() const
Options du jeu de données du service.
Classe de base de service lié à un sous-domaine.
Informations pour construire une option de jeu de données.
ICaseFunction * function() const override
Fonction associée à cette option (0 si aucune).
virtual IStandardFunction * standardFunction() const
Fonction standard associée à cette option (0 si aucune).
Description et contenu d'un fichier.
Definition FileContent.h:32
Interface d'une fonction du jeu de données.
Interface du gestionnaire de cas.
Definition ICaseMng.h:56
Interface d'une liste d'options du jeu de données.
Interface d'une liste d'options du jeu de données.
Interface d'un module.
Definition IModule.h:39
Interface des informations d'un service ou d'un module.
Interface gérant une fonction standard.
static void registerToServiceInfo(ServiceInfo *si, const Interfaces &... args)
Enregistre dans le service les fabriques pour les interfacs Interfaces.
Informations d'un service.
Definition ServiceInfo.h:46
ICaseOptions * caseOptions() const
Accès au ICaseOptions associé.
Structure contenant les informations pour créer un service.
Noeud d'un arbre DOM.
Definition XmlNode.h:51
Encapsulation d'un pointeur avec compteur de référence.
Vue d'un tableau d'éléments de type T.
Definition Span.h:510
Chaîne de caractères unicode.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
unsigned char Byte
Type d'un octet.
Definition UtilsTypes.h:142