Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
CaseOptionComplexValue.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2026 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/* CaseOptionComplexValue.h (C) 2000-2023 */
9/* */
10/* Option for a 'complex' data set. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CASEOPTIONCOMPLEXVALUE_H
13#define ARCANE_CASEOPTIONCOMPLEXVALUE_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arccore/base/ReferenceCounter.h"
18
19#include "arcane/core/ICaseOptionList.h"
20#include "arcane/core/XmlNode.h"
21
22/*---------------------------------------------------------------------------*/
23/*---------------------------------------------------------------------------*/
24
25namespace Arcane
26{
27
29
30/*---------------------------------------------------------------------------*/
31/*---------------------------------------------------------------------------*/
32
39class ARCANE_CORE_EXPORT CaseOptionComplexValue
40{
41 public:
42
43 CaseOptionComplexValue(ICaseOptionsMulti* opt, ICaseOptionList* clist, const XmlNode& parent_elem);
44 virtual ~CaseOptionComplexValue();
45
46 public:
47
48 ARCANE_DEPRECATED_REASON("Y2022: Do not access XML item from option")
49 XmlNode element() const { return m_element; }
50
51 ARCANE_DEPRECATED_REASON("Y2022: This method is internal to Arcane. Do not use it")
52 ICaseOptionList* configList() const { return m_config_list.get(); }
53
55 String xpathFullName() const { return m_element.xpathFullName(); }
56
57 protected:
58
59 // The following two methods are used by the 'axl2cc' generator and
60 // must not be modified.
61 ICaseOptionList* _configList() { return m_config_list.get(); }
62 XmlNode _element() { return m_element; }
63
64 private:
65
66 ReferenceCounter<ICaseOptionList> m_config_list;
67 XmlNode m_element;
68};
69
70/*---------------------------------------------------------------------------*/
71/*---------------------------------------------------------------------------*/
72
73} // End namespace Arcane
74
75/*---------------------------------------------------------------------------*/
76/*---------------------------------------------------------------------------*/
77
78#endif
String xpathFullName() const
Full name in the format specified by the XPath standard.
Interface for a data set options list.
Interface for a list of options that appears multiple times.
Node of a DOM tree.
Definition XmlNode.h:51
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --