Arcane  v3.14.10.0
Documentation utilisateur
Chargement...
Recherche...
Aucune correspondance
CaseOptionBuildInfo.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/* CaseOptionBuildInfo.cc (C) 2000-2018 */
9/* */
10/* Informations pour construire une option du jeu de données */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#include "arcane/CaseOptionBuildInfo.h"
15#include "arcane/ICaseMng.h"
16#include "arcane/CaseOptions.h"
17
18/*---------------------------------------------------------------------------*/
19/*---------------------------------------------------------------------------*/
20
21ARCANE_BEGIN_NAMESPACE
22
23/*---------------------------------------------------------------------------*/
24/*---------------------------------------------------------------------------*/
25
26CaseOptionBuildInfo::
27CaseOptionBuildInfo(ICaseOptionList* icl,const String& s,
28 const XmlNode& element,const String& def_val,
29 Integer min_occurs,Integer max_occurs)
30: m_case_mng(icl->caseMng())
31, m_case_option_list(icl)
32, m_name(s)
33, m_default_value(def_val)
34, m_element(element)
35, m_min_occurs(min_occurs)
36, m_max_occurs(max_occurs)
37, m_is_optional(false)
38{
39}
40
41/*---------------------------------------------------------------------------*/
42/*---------------------------------------------------------------------------*/
43
44CaseOptionBuildInfo::
45CaseOptionBuildInfo(ICaseOptionList* icl,const String& s,
46 const XmlNode& element,const String& def_val,
47 Integer min_occurs,Integer max_occurs,bool is_optional)
48: m_case_mng(icl->caseMng())
49, m_case_option_list(icl)
50, m_name(s)
51, m_default_value(def_val)
52, m_element(element)
53, m_min_occurs(min_occurs)
54, m_max_occurs(max_occurs)
55, m_is_optional(is_optional)
56{
57}
58
59/*---------------------------------------------------------------------------*/
60/*---------------------------------------------------------------------------*/
61
62ARCANE_END_NAMESPACE
63
64/*---------------------------------------------------------------------------*/
65/*---------------------------------------------------------------------------*/
66