Arcane  4.2.1.0
Developer documentation
Loading...
Searching...
No Matches
AlephTestSchemeFaces_axl.h
1/*---------------------------------------------------------------------------*/
2/*---------------------------------------------------------------------------*/
3// #WARNING#: This file has been generated automatically. Do not edit.
4// Axlstar version 1.0
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
25class CaseOptionsAlephTestSchemeFaces
26{
27public:
28
29 /*-------------------------------------------------------------------------*/
30 /*--------------------------- Complex Options -----------------------------*/
31 /*-------------------------------------------------------------------------*/
32
33 /*-------------------------------------------------------------------------*/
34 /*--------------------------- Non Complex Options -------------------------*/
35 /*-------------------------------------------------------------------------*/
36
37 CaseOptionsAlephTestSchemeFaces(Arcane::ICaseOptions* co)
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
103 Arcane::CaseOptionBool amr;
104};
105
106/*---------------------------------------------------------------------------*/
107/*---------------------------------------------------------------------------*/
108
109#endif
110
111
112
113/*---------------------------------------------------------------------------*/
114/*---------------------------------------------------------------------------*/
115// #WARNING#: This file has been generated automatically. Do not edit.
116// Axlstar version 1.0
117/*---------------------------------------------------------------------------*/
118/*---------------------------------------------------------------------------*/
119#ifndef ARCANE_SERVICE_AXLSTAR_ALEPHTESTSCHEMEFACES_H
120#define ARCANE_SERVICE_AXLSTAR_ALEPHTESTSCHEMEFACES_H
121/*---------------------------------------------------------------------------*/
122/*---------------------------------------------------------------------------*/
123
124#include "arcane/core/VariableTypes.h"
125#include "arcane/core/ServiceInfo.h"
126#include "arcane/core/ISubDomain.h"
127#include "arcane/core/ServiceBuildInfo.h"
129#include "arcane/core/ServiceRegisterer.h"
130#include "arcane/core/BasicService.h"
131
132#ifndef ARCANE_HAS_SPECIFIC_BASIC_SERVICE
133// Code pour les versions de Arcane avant la 3.8 qui ne possèdent pas les
134// classes de base spécifiques pour les services
135namespace Arcane
136{
137using BasicCaseOptionService = BasicService;
138using BasicSubDomainService = BasicService;
139using BasicMeshService = BasicService;
140}
141#endif
142
143/*---------------------------------------------------------------------------*/
144/*---------------------------------------------------------------------------*/
145
147
148/*---------------------------------------------------------------------------*/
149/*---------------------------------------------------------------------------*/
150
153 : public Arcane::BasicCaseOptionService
155{
156public:
157 // NOTE GG: attention code dupliqué avec 'ServiceT4CaseAndStrong'. Bien reporter les modifications
158 template <typename ServiceClassType> static void fillServiceInfo(Arcane::ServiceInfo* si)
159 {
160 si->setCaseOptionsFileName("AlephTestSchemeFaces_arcane_aleph_tests");
161 si->setAxlVersion(1.0);
162 si->setDefaultTagName("aleph-test-scheme-faces");
163 si->setAxlContent(getAxlContent());
166);
167 }
168
169public:
170
173 : Arcane::BasicCaseOptionService(sbi)
174 , m_options(nullptr)
175 , m_cell_temperature(Arcane::VariableBuildInfo(sbi.meshHandle(), "CellTemperature" ))
176 , m_face_temperature(Arcane::VariableBuildInfo(sbi.meshHandle(), "FaceTemperature" , Arcane::IVariable::PNoDump))
177 , m_cell_matrix_idx(Arcane::VariableBuildInfo(sbi.meshHandle(), "CellMatrixIdx" , Arcane::IVariable::PNoDump| Arcane::IVariable::PNoNeedSync))
178 , m_cell_coefs(Arcane::VariableBuildInfo(sbi.meshHandle(), "CellCoefs" , Arcane::IVariable::PNoDump| Arcane::IVariable::PNoNeedSync))
179 {
181 if (co) {
183 }
184
185 }
186
189 {
190 delete m_options;
191 }
192
193
194public:
195
198
199private:
200
203
204protected:
205
208 Arcane::VariableFaceReal m_face_temperature;
209 Arcane::VariableCellInteger m_cell_matrix_idx;
210 Arcane::VariableCellReal m_cell_coefs;
211private:
212 static Arcane::FileContent getAxlContent()
213 {
214 const Arcane::Byte* content = (const Arcane::Byte*)"";
215 Arcane::Span<const Arcane::Byte> bytes(content,0);
216 int file_version = 1;
217 return Arcane::FileContent(bytes,file_version,"");
218 }
219};
220
221/*---------------------------------------------------------------------------*/
222/*---------------------------------------------------------------------------*/
223
224#define ARCANE_REGISTER_SERVICE_ALEPHTESTSCHEMEFACES(service_name,class_name) \
225 ARCANE_REGISTER_AXL_SERVICE(class_name,Arcane::ServiceProperty(#service_name,Arcane::ST_CaseOption,\
226 Arcane::SFP_None ))
227
228/*---------------------------------------------------------------------------*/
229/*---------------------------------------------------------------------------*/
230
231#endif
232
This file contains the various service factories and macros for registering services.
#define ARCANE_SERVICE_INTERFACE(ainterface)
Macro to declare an interface when registering a 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.
Information for building a dataset option.
Description and content of a file.
Definition FileContent.h:33
Interface of a dataset function.
Case manager interface.
Definition ICaseMng.h:57
Interface for a data set options list.
Interface for a list of data set options.
Interface of a module.
Definition IModule.h:40
Interface for service or module information.
Interface managing a standard function.
Information about a service.
Definition ServiceInfo.h:51
Encapsulation of a pointer with a reference counter.
static void registerToServiceInfo(ServiceInfo *si, const Interfaces &... args)
Registers the factories for the Interfaces interfaces in the service.
ICaseOptions * caseOptions() const
Access to the associated ICaseOptions.
Structure containing the information to create a service.
View of an array of elements of type T.
Definition Span.h:633
Node of a DOM tree.
Definition XmlNode.h:51
MeshVariableScalarRefT< Face, Real > VariableFaceReal
Real type quantity at face.
MeshVariableScalarRefT< Cell, Real > VariableCellReal
Real type quantity at cell center.
MeshVariableScalarRefT< Cell, Integer > VariableCellInteger
Quantity at the cell center of integer type.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
unsigned char Byte
Type of a byte.
Definition BaseTypes.h:42