Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
ServiceBuildInfo.cc
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2022 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/* ServiceBuildInfo.cc (C) 2000-2020 */
9/* */
10/* Informations d'un service. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#include "arcane/utils/ArcanePrecomp.h"
15
16#include "arcane/ServiceBuildInfo.h"
17#include "arcane/ISession.h"
18#include "arcane/ISubDomain.h"
19#include "arcane/IApplication.h"
20#include "arcane/IMesh.h"
21#include "arcane/ICaseOptions.h"
22
23/*---------------------------------------------------------------------------*/
24/*---------------------------------------------------------------------------*/
25
26namespace Arcane
27{
28/*---------------------------------------------------------------------------*/
29/*---------------------------------------------------------------------------*/
30
33: m_application(app)
34, m_service_parent(app)
35, m_creation_type(ST_Application)
36{
37}
38
39/*---------------------------------------------------------------------------*/
40/*---------------------------------------------------------------------------*/
41
44: m_session(session)
45, m_service_parent(session)
46, m_creation_type(ST_Session)
47{
48}
49
50/*---------------------------------------------------------------------------*/
51/*---------------------------------------------------------------------------*/
52
55: ServiceBuildInfoBase(mesh->subDomain(),mesh->handle())
56{
57}
58
59/*---------------------------------------------------------------------------*/
60/*---------------------------------------------------------------------------*/
61
67
68/*---------------------------------------------------------------------------*/
69/*---------------------------------------------------------------------------*/
70
73: m_sub_domain(sd)
74, m_mesh_handle(mesh_handle)
75, m_service_parent(m_sub_domain)
76, m_creation_type(ST_SubDomain)
77{
78}
79
80/*---------------------------------------------------------------------------*/
81/*---------------------------------------------------------------------------*/
82
88
89/*---------------------------------------------------------------------------*/
90/*---------------------------------------------------------------------------*/
91
94: m_sub_domain(sd)
95, m_mesh_handle(sd->defaultMeshHandle())
96, m_service_parent(sd)
97, m_creation_type(ST_SubDomain)
98{
99}
100
101/*---------------------------------------------------------------------------*/
102/*---------------------------------------------------------------------------*/
103
106: m_sub_domain(sd)
107, m_mesh_handle(co->meshHandle())
108, m_case_options(co)
109, m_service_parent(m_sub_domain)
110, m_creation_type(ST_CaseOption)
111{
112}
113
114/*---------------------------------------------------------------------------*/
115/*---------------------------------------------------------------------------*/
116
122
123/*---------------------------------------------------------------------------*/
124/*---------------------------------------------------------------------------*/
125
127mesh() const
128{
129 return m_mesh_handle.mesh();
130}
131
132/*---------------------------------------------------------------------------*/
133/*---------------------------------------------------------------------------*/
134
135/*---------------------------------------------------------------------------*/
136/*---------------------------------------------------------------------------*/
137
138ServiceBuildInfo::
139ServiceBuildInfo(IServiceInfo* service_info, const ServiceBuildInfoBase& sbib)
141, m_service_info(service_info)
142{
143}
144
145/*---------------------------------------------------------------------------*/
146/*---------------------------------------------------------------------------*/
147
148} // End namespace Arcane
149
150/*---------------------------------------------------------------------------*/
151/*---------------------------------------------------------------------------*/
152
Interface de l'application.
Interface d'une liste d'options du jeu de données.
Interface des informations d'un service ou d'un module.
Interface d'une session d'exécution d'un cas.
Definition ISession.h:44
Interface du gestionnaire d'un sous-domaine.
Definition ISubDomain.h:74
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition Lima.cc:120
Handle sur un maillage.
Definition MeshHandle.h:47
IMesh * mesh() const
Maillage associé.
Informations pour créer un service.
IMesh * mesh() const
Accès au IMesh associé.
ServiceBuildInfoBase(IApplication *app)
Service associé à une application IApplication.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
@ ST_Application
Le service s'utilise au niveau de l'application.
@ ST_CaseOption
Le service s'utilise au niveau du jeu de données.
@ ST_Session
Le service s'utilise au niveau de la session.
@ ST_SubDomain
Le service s'utilise au niveau du sous-domaine.