Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
ConfigurationReader.h
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/* ConfigurationReader.h (C) 2000-2020 */
9/* */
10/* Lecteurs de fichiers de configuration. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_IMPL_CONFIGURATIONREADER_H
13#define ARCANE_IMPL_CONFIGURATIONREADER_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/utils/TraceAccessor.h"
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
28class XmlNode;
29class IConfiguration;
30
31/*---------------------------------------------------------------------------*/
32/*---------------------------------------------------------------------------*/
36class ARCANE_IMPL_EXPORT ConfigurationReader
37: public TraceAccessor
38{
39 public:
40
41 enum Priority
42 {
43 P_CaseDocument = 10,
44 P_TimeLoop = 50,
45 P_Global = 100,
46 P_GlobalRuntime = 110
47 };
48
49 public:
50
52 : TraceAccessor(tm), m_configuration(config) {}
64 void addValuesFromXmlNode(const XmlNode& element,Integer priority);
65
79 void addValuesFromJSON(const JSONValue& jv,Integer priority);
80
81 private:
82
83 IConfiguration* m_configuration;
84
85 private:
86
87 void _addValuesFromJSON(const JSONValue& jv,Integer priority,const String& base_name);
88};
89
90/*---------------------------------------------------------------------------*/
91/*---------------------------------------------------------------------------*/
92
93} // End namespace Arcane
94
95/*---------------------------------------------------------------------------*/
96/*---------------------------------------------------------------------------*/
97
98#endif
Lecteurs de fichiers de configuration.
Interface d'une configuration.
Représente une valeur JSON.
Definition JSONReader.h:43
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition Lima.cc:120
Noeud d'un arbre DOM.
Definition XmlNode.h:51
Interface du gestionnaire de traces.
Chaîne de caractères unicode.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-