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
26
namespace
Arcane
27
{
28
/*---------------------------------------------------------------------------*/
29
/*---------------------------------------------------------------------------*/
30
31
ServiceBuildInfoBase::
32
ServiceBuildInfoBase
(
IApplication
*
app
)
33
: m_application(
app
)
34
, m_service_parent(
app
)
35
, m_creation_type(
ST_Application
)
36
{
37
}
38
39
/*---------------------------------------------------------------------------*/
40
/*---------------------------------------------------------------------------*/
41
42
ServiceBuildInfoBase::
43
ServiceBuildInfoBase
(
ISession
* session)
44
: m_session(session)
45
, m_service_parent(session)
46
, m_creation_type(
ST_Session
)
47
{
48
}
49
50
/*---------------------------------------------------------------------------*/
51
/*---------------------------------------------------------------------------*/
52
53
ServiceBuildInfoBase::
54
ServiceBuildInfoBase
(
IMesh
* mesh)
55
:
ServiceBuildInfoBase
(mesh->subDomain(),mesh->handle())
56
{
57
}
58
59
/*---------------------------------------------------------------------------*/
60
/*---------------------------------------------------------------------------*/
61
62
ServiceBuildInfoBase::
63
ServiceBuildInfoBase
(
ISubDomain
*
sd
,
IMesh
* mesh)
64
:
ServiceBuildInfoBase
(
sd
,mesh->handle())
65
{
66
}
67
68
/*---------------------------------------------------------------------------*/
69
/*---------------------------------------------------------------------------*/
70
71
ServiceBuildInfoBase::
72
ServiceBuildInfoBase
(
ISubDomain
*
sd
,
const
MeshHandle
&
mesh_handle
)
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
83
ServiceBuildInfoBase::
84
ServiceBuildInfoBase
(
const
MeshHandle
&
mesh_handle
)
85
:
ServiceBuildInfoBase
(
mesh_handle
.subDomain(),
mesh_handle
)
86
{
87
}
88
89
/*---------------------------------------------------------------------------*/
90
/*---------------------------------------------------------------------------*/
91
92
ServiceBuildInfoBase::
93
ServiceBuildInfoBase
(
ISubDomain
*
sd
)
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
104
ServiceBuildInfoBase::
105
ServiceBuildInfoBase
(
ISubDomain
*
sd
,
ICaseOptions
*
co
)
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
117
ServiceBuildInfoBase::
118
ServiceBuildInfoBase
(
ICaseOptions
*
co
)
119
:
ServiceBuildInfoBase
(
co
->subDomain(),
co
)
120
{
121
}
122
123
/*---------------------------------------------------------------------------*/
124
/*---------------------------------------------------------------------------*/
125
126
IMesh
*
ServiceBuildInfoBase::
127
mesh
()
const
128
{
129
return
m_mesh_handle.
mesh
();
130
}
131
132
/*---------------------------------------------------------------------------*/
133
/*---------------------------------------------------------------------------*/
134
135
/*---------------------------------------------------------------------------*/
136
/*---------------------------------------------------------------------------*/
137
138
ServiceBuildInfo::
139
ServiceBuildInfo(
IServiceInfo
* service_info,
const
ServiceBuildInfoBase
&
sbib
)
140
:
ServiceBuildInfoBase
(
sbib
)
141
, m_service_info(service_info)
142
{
143
}
144
145
/*---------------------------------------------------------------------------*/
146
/*---------------------------------------------------------------------------*/
147
148
}
// End namespace Arcane
149
150
/*---------------------------------------------------------------------------*/
151
/*---------------------------------------------------------------------------*/
152
Arcane::IApplication
Interface de l'application.
Definition
IApplication.h:57
Arcane::ICaseOptions
Interface d'une liste d'options du jeu de données.
Definition
ICaseOptions.h:35
Arcane::IMesh
Definition
IMesh.h:59
Arcane::IServiceInfo
Interface des informations d'un service ou d'un module.
Definition
IServiceInfo.h:37
Arcane::ISession
Interface d'une session d'exécution d'un cas.
Definition
ISession.h:44
Arcane::ISubDomain
Interface du gestionnaire d'un sous-domaine.
Definition
ISubDomain.h:74
Arcane::LimaWrapper
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition
Lima.cc:120
Arcane::MeshHandle
Handle sur un maillage.
Definition
MeshHandle.h:47
Arcane::MeshHandle::mesh
IMesh * mesh() const
Maillage associé.
Definition
MeshHandle.cc:133
Arcane::ServiceBuildInfoBase
Informations pour créer un service.
Definition
ServiceBuildInfo.h:43
Arcane::ServiceBuildInfoBase::mesh
IMesh * mesh() const
Accès au IMesh associé.
Definition
ServiceBuildInfo.cc:127
Arcane::ServiceBuildInfoBase::ServiceBuildInfoBase
ServiceBuildInfoBase(IApplication *app)
Service associé à une application IApplication.
Definition
ServiceBuildInfo.cc:32
Arcane
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
Definition
AcceleratorGlobal.h:36
Arcane::ST_Application
@ ST_Application
Le service s'utilise au niveau de l'application.
Definition
ServiceProperty.h:62
Arcane::ST_CaseOption
@ ST_CaseOption
Le service s'utilise au niveau du jeu de données.
Definition
ServiceProperty.h:68
Arcane::ST_Session
@ ST_Session
Le service s'utilise au niveau de la session.
Definition
ServiceProperty.h:64
Arcane::ST_SubDomain
@ ST_SubDomain
Le service s'utilise au niveau du sous-domaine.
Definition
ServiceProperty.h:66
arcane
core
ServiceBuildInfo.cc
Généré le Lundi 18 Novembre 2024 03:01:04 pour Arcane par
1.9.8