Arcane  v3.14.10.0
Documentation utilisateur
Chargement...
Recherche...
Aucune correspondance
CaseOptionsMulti.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/* CaseOptionsMulti.h (C) 2000-2019 */
9/* */
10/* Options du jeu de données gérant plusieurs occurences. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CASEOPTIONSMULTI_H
13#define ARCANE_CASEOPTIONSMULTI_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/CaseOptions.h"
18#include "arcane/utils/UniqueArray.h"
19
20/*---------------------------------------------------------------------------*/
21/*---------------------------------------------------------------------------*/
22
23namespace Arcane
24{
25
26/*---------------------------------------------------------------------------*/
27/*---------------------------------------------------------------------------*/
28/*!
29 * \internal
30 * \brief Classe de base d'un tableau d'options complexes du jeu de données.
31 */
32class ARCANE_CORE_EXPORT CaseOptionsMulti
33: public CaseOptions
34, public ICaseOptionsMulti
35{
36 public:
37
38 CaseOptionsMulti(ICaseMng*,const String& tag_root_name,
39 const XmlNode& element,Integer min_occurs,Integer max_occurs);
40 CaseOptionsMulti(ICaseOptionList*,const String& tag_root_name,
41 const XmlNode& element,Integer min_occurs,Integer max_occurs);
42
43 public:
44
45 ICaseOptions* toCaseOptions() override { return this; }
46 void addChild(ICaseOptionList* v) override { m_values.add(v); }
47 Integer nbChildren() const override { return m_values.size(); }
48 ICaseOptionList* child(Integer index) const override { return m_values[index]; }
49 ICaseOptionsMulti* toCaseOptionsMulti() { return this; }
50
51 private:
52
54};
55
56/*---------------------------------------------------------------------------*/
57/*---------------------------------------------------------------------------*/
58
59} // End namespace Arcane
60
61/*---------------------------------------------------------------------------*/
62/*---------------------------------------------------------------------------*/
63
64#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.
Vecteur 1D de données avec sémantique par valeur (style STL).
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-