Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
ParameterListWithCaseOption.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/* ParameterListWithCaseOption.h (C) 2000-2025 */
9/* */
10/* Parameter list with support for dataset options. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_UTILS_INTERNAL_PARAMETERLISTWITHCASEOPTION_H
13#define ARCANE_UTILS_INTERNAL_PARAMETERLISTWITHCASEOPTION_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18#include "arcane/utils/internal/ParameterCaseOption.h"
19
20/*---------------------------------------------------------------------------*/
21/*---------------------------------------------------------------------------*/
22
23namespace Arcane
24{
25class ParameterList;
26
27/*---------------------------------------------------------------------------*/
28/*---------------------------------------------------------------------------*/
29
33class ARCANE_UTILS_EXPORT ParameterListWithCaseOption
34{
35 class Impl;
36
37 public:
38
44
45 public:
46
55 String getParameterOrNull(const String& param_name) const;
56
76 bool addParameterLine(const String& line);
77
87
89 void addParameters(const ParameterList& parameters);
90
91 private:
92
93 Impl* m_p = nullptr;
94};
95
96/*---------------------------------------------------------------------------*/
97/*---------------------------------------------------------------------------*/
98
99} // End namespace Arcane
100
101/*---------------------------------------------------------------------------*/
102/*---------------------------------------------------------------------------*/
103
104#endif
Declarations of types used in Arcane.
Class representing the set of parameters that can modify the dataset options.
bool addParameterLine(const String &line)
Parses the line line.
void addParameters(const ParameterList &parameters)
Adds the parameters from parameters to the instance's parameters.
ParameterCaseOption getParameterCaseOption(const String &language) const
Method to retrieve an object of type ParameterCaseOption.
String getParameterOrNull(const String &param_name) const
Retrieves the parameter with name param_name.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --