Arcane  4.2.1.0
Developer documentation
Loading...
Searching...
No Matches
SimpleCsvComparator_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_SIMPLECSVCOMPARATOR_H
9#define ARCANE_CASEOPTION_AXLSTAR_SIMPLECSVCOMPARATOR_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 CaseOptionsSimpleCsvComparator
26{
27public:
28
29 /*-------------------------------------------------------------------------*/
30 /*--------------------------- Complex Options -----------------------------*/
31 /*-------------------------------------------------------------------------*/
32
33 /*-------------------------------------------------------------------------*/
34 /*--------------------------- Non Complex Options -------------------------*/
35 /*-------------------------------------------------------------------------*/
36
37 CaseOptionsSimpleCsvComparator(Arcane::ICaseOptions* co)
38 : m_case_options(co)
39 {
40
41 }
42
43public:
44 // Interfaces for main CaseOptions
45
46
47
48
49 // Interfaces for complex options
50
51
52public:
53
54 Arcane::ICaseOptions* caseOptions() const
55 {
56 return m_case_options.get();
57 }
58
59 Arcane::ICaseOptionList* configList() const
60 {
61 return m_case_options->configList();
62 }
63
64 void setCaseModule(Arcane::IModule* m)
65 {
66 m_case_options->setCaseModule(m);
67 }
68
69 void setCaseServiceInfo(Arcane::IServiceInfo* si)
70 {
71 m_case_options->setCaseServiceInfo(si);
72 }
73
74 void addAlternativeNodeName(const Arcane::String& lang,
75 const Arcane::String& name)
76 {
77 m_case_options->addAlternativeNodeName(lang,name);
78 }
79
80private:
81
82 Arcane::ICaseOptionList* _configList() const { return configList(); }
83 Arcane::XmlNode _element() const { return Arcane::XmlNode(); }
84
85private:
86
87 static Arcane::ICaseOptions* _createCaseOption(Arcane::ICaseMng* cm,Arcane::ICaseOptions* co);
88
90
91public:
92
93
94};
95
96/*---------------------------------------------------------------------------*/
97/*---------------------------------------------------------------------------*/
98
99#endif
100
101
102
103/*---------------------------------------------------------------------------*/
104/*---------------------------------------------------------------------------*/
105// #WARNING#: This file has been generated automatically. Do not edit.
106// Axlstar version 1.0
107/*---------------------------------------------------------------------------*/
108/*---------------------------------------------------------------------------*/
109#ifndef ARCANE_SERVICE_AXLSTAR_SIMPLECSVCOMPARATOR_H
110#define ARCANE_SERVICE_AXLSTAR_SIMPLECSVCOMPARATOR_H
111/*---------------------------------------------------------------------------*/
112/*---------------------------------------------------------------------------*/
113
114#include "arcane/core/VariableTypes.h"
115#include "arcane/core/ServiceInfo.h"
116#include "arcane/core/ISubDomain.h"
117#include "arcane/core/ServiceBuildInfo.h"
119#include "arcane/core/ServiceRegisterer.h"
120#include "arcane/core/BasicService.h"
121
122#ifndef ARCANE_HAS_SPECIFIC_BASIC_SERVICE
123// Code pour les versions de Arcane avant la 3.8 qui ne possèdent pas les
124// classes de base spécifiques pour les services
125namespace Arcane
126{
127using BasicCaseOptionService = BasicService;
128using BasicSubDomainService = BasicService;
129using BasicMeshService = BasicService;
130}
131#endif
132
133/*---------------------------------------------------------------------------*/
134/*---------------------------------------------------------------------------*/
135
137
138/*---------------------------------------------------------------------------*/
139/*---------------------------------------------------------------------------*/
140
143 : public Arcane::BasicCaseOptionService
145{
146public:
147 // NOTE GG: attention code dupliqué avec 'ServiceT4CaseAndStrong'. Bien reporter les modifications
148 template <typename ServiceClassType> static void fillServiceInfo(Arcane::ServiceInfo* si)
149 {
150 si->setCaseOptionsFileName("SimpleCsvComparator_arcane_std");
151 si->setAxlVersion(1.0);
152 si->setDefaultTagName("simple-csv-comparator");
153 si->setAxlContent(getAxlContent());
156);
157 }
158
159public:
160
163 : Arcane::BasicCaseOptionService(sbi)
164 , m_options(nullptr)
165 {
167 if (co) {
169 }
170
171 }
172
175 {
176 delete m_options;
177 }
178
179
180public:
181
184
185private:
186
189
190protected:
191
193private:
195 {
196 const Arcane::Byte* content = (const Arcane::Byte*)"";
197 Arcane::Span<const Arcane::Byte> bytes(content,0);
198 int file_version = 1;
199 return Arcane::FileContent(bytes,file_version,"");
200 }
201};
202
203/*---------------------------------------------------------------------------*/
204/*---------------------------------------------------------------------------*/
205
206#define ARCANE_REGISTER_SERVICE_SIMPLECSVCOMPARATOR(service_name,class_name) \
207 ARCANE_REGISTER_AXL_SERVICE(class_name,Arcane::ServiceProperty(#service_name,Arcane::ST_CaseOption,\
208 Arcane::SFP_Singleton ))
209
210/*---------------------------------------------------------------------------*/
211/*---------------------------------------------------------------------------*/
212
213#endif
214
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.
virtual ~ArcaneSimpleCsvComparatorObject()
Destructeur.
CaseOptionsSimpleCsvComparator * m_options
Options du jeu de données du service.
static Arcane::FileContent getAxlContent()
Variables du service.
CaseOptionsSimpleCsvComparator * options() const
Options du jeu de données du service.
ArcaneSimpleCsvComparatorObject(const Arcane::ServiceBuildInfo &sbi)
Constructeur.
Description and content of a file.
Definition FileContent.h:33
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.
Class interface representing a table comparator. To be used with a service implementing ISimpleTableO...
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
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
unsigned char Byte
Type of a byte.
Definition BaseTypes.h:42