Arcane  v3.14.10.0
Documentation utilisateur
Chargement...
Recherche...
Aucune correspondance
CaseOptionBuildInfo.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/* CaseOptionBuildInfo.h (C) 2000-2019 */
9/* */
10/* Informations pour construire une option du jeu de données */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CASEOPTIONBUILDINFO_H
13#define ARCANE_CASEOPTIONBUILDINFO_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/utils/String.h"
18#include "arcane/XmlNode.h"
19
20/*---------------------------------------------------------------------------*/
21/*---------------------------------------------------------------------------*/
22
23namespace Arcane
24{
25
26/*---------------------------------------------------------------------------*/
27/*---------------------------------------------------------------------------*/
28
29class ICaseMng;
30class ICaseOptionList;
31
32/*---------------------------------------------------------------------------*/
33/*---------------------------------------------------------------------------*/
34/*!
35 * \internal
36 * \ingroup CaseOption
37 * \brief Informations pour construire une option de jeu de données.
38 */
39class ARCANE_CORE_EXPORT CaseOptionBuildInfo
40{
41 public:
43 const XmlNode& element,const String& def_val,
44 Integer min_occurs,Integer max_occurs);
46 const XmlNode& element,const String& def_val,
47 Integer min_occurs,Integer max_occurs,bool is_optional);
48 public:
49 ICaseMng* caseMng() const { return m_case_mng; }
50 ICaseOptionList* caseOptionList() const { return m_case_option_list; }
51 String name() const { return m_name; }
52 String defaultValue() const { return m_default_value; }
53 XmlNode element() const { return m_element; }
54 Integer minOccurs() const { return m_min_occurs; }
55 Integer maxOccurs() const { return m_max_occurs; }
56 bool isOptional() const { return m_is_optional; }
57 private:
58 ICaseMng* m_case_mng;
59 ICaseOptionList* m_case_option_list;
60 String m_name; //!< Nom de l'option
61 String m_default_value; //!< Valeur par défaut (null si aucune)
62 XmlNode m_element; //!< Elément de l'option
63 Integer m_min_occurs; //!< Nombre minimum d'occurences
64 Integer m_max_occurs; //!< Nombre maximum d'occurences (-1 == unbounded)
65 bool m_is_optional;
66};
67
68/*---------------------------------------------------------------------------*/
69/*---------------------------------------------------------------------------*/
70
71} // End namespace Arcane
72
73/*---------------------------------------------------------------------------*/
74/*---------------------------------------------------------------------------*/
75
76#endif
Interface du gestionnaire de cas.
Definition ICaseMng.h:56
Noeud d'un arbre DOM.
Definition XmlNode.h:51
Chaîne de caractères unicode.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-