Arcane  v3.14.10.0
Documentation utilisateur
Chargement...
Recherche...
Aucune correspondance
ServiceBuilder.cc
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2023 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/* ServiceBuilder.cc (C) 2000-2023 */
9/* */
10/* Classe utilitaire pour instantier un service. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#include "arcane/core/ServiceBuilder.h"
15
16#include "arcane/core/ICaseMng.h"
17#include "arcane/core/CaseOptions.h"
18#include "arcane/core/internal/ICaseMngInternal.h"
19
20/*---------------------------------------------------------------------------*/
21/*---------------------------------------------------------------------------*/
22
23namespace Arcane
24{
25
26/*---------------------------------------------------------------------------*/
27/*---------------------------------------------------------------------------*/
28
29ReferenceCounter<ICaseOptions> ServiceBuilderWithOptionsBase::
30_buildCaseOptions(const AxlOptionsBuilder::Document& options_doc) const
31{
32 ReferenceCounter<ICaseOptions> co = CaseOptions::createDynamic(m_case_mng, options_doc);
33 return co;
34}
35
36/*---------------------------------------------------------------------------*/
37/*---------------------------------------------------------------------------*/
38
39IApplication* ServiceBuilderWithOptionsBase::
40_application() const
41{
42 return m_case_mng->application();
43}
44
45/*---------------------------------------------------------------------------*/
46/*---------------------------------------------------------------------------*/
47
48void ServiceBuilderWithOptionsBase::
49_readOptions(ICaseOptions* opt) const
50{
51 m_case_mng->_internalImpl()->internalReadOneOption(opt, true);
52 m_case_mng->_internalImpl()->internalReadOneOption(opt, false);
53}
54
55/*---------------------------------------------------------------------------*/
56/*---------------------------------------------------------------------------*/
57
58} // namespace Arcane
59
60/*---------------------------------------------------------------------------*/
61/*---------------------------------------------------------------------------*/
62
virtual ICaseMngInternal * _internalImpl()=0
Implémentation interne.
virtual IApplication * application()=0
Application associée.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-