Parameter list with information to override dataset options. More...
#include <arcane/utils/internal/ParameterListWithCaseOption.h>
Classes | |
| class | Impl |
Public Member Functions | |
| ParameterListWithCaseOption () | |
| Constructs a dictionary. | |
| ParameterListWithCaseOption (const ParameterListWithCaseOption &rhs) | |
| Constructs a dictionary. | |
| ~ParameterListWithCaseOption () | |
| Releases resources. | |
| String | getParameterOrNull (const String ¶m_name) const |
| Retrieves the parameter with name param_name. | |
| bool | addParameterLine (const String &line) |
| Parses the line line. | |
| ParameterCaseOption | getParameterCaseOption (const String &language) const |
| Method to retrieve an object of type ParameterCaseOption. | |
| void | addParameters (const ParameterList ¶meters) |
| Adds the parameters from parameters to the instance's parameters. | |
Private Attributes | |
| Impl * | m_p = nullptr |
| Implementation. | |
Parameter list with information to override dataset options.
Definition at line 33 of file ParameterListWithCaseOption.h.
| Arcane::ParameterListWithCaseOption::ParameterListWithCaseOption | ( | ) |
Constructs a dictionary.
Definition at line 171 of file ParameterListWithCaseOption.cc.
References m_p.
Referenced by ParameterListWithCaseOption().
| Arcane::ParameterListWithCaseOption::ParameterListWithCaseOption | ( | const ParameterListWithCaseOption & | rhs | ) |
Constructs a dictionary.
Definition at line 180 of file ParameterListWithCaseOption.cc.
References m_p, and ParameterListWithCaseOption().
| Arcane::ParameterListWithCaseOption::~ParameterListWithCaseOption | ( | ) |
| bool Arcane::ParameterListWithCaseOption::addParameterLine | ( | const String & | line | ) |
Parses the line line.
The line must have one of the following forms, with A the parameter and B the value:
In case (1) or (3), the argument value is added to the already present occurrences. In case (2), the argument value replaces all already present occurrences. In case (4), the occurrence having the value B is deleted if it was present and nothing happens if it was absent.
| false | if a parameter could be parsed |
| true | otherwise. |
Definition at line 207 of file ParameterListWithCaseOption.cc.
References Arcane::String::bytes(), m_p, and Arcane::String::substring().
| void Arcane::ParameterListWithCaseOption::addParameters | ( | const ParameterList & | parameters | ) |
Adds the parameters from parameters to the instance's parameters.
Definition at line 247 of file ParameterListWithCaseOption.cc.
References Arcane::CollectionBase::count(), Arcane::ParameterList::fillParameters(), and m_p.
| ParameterCaseOption Arcane::ParameterListWithCaseOption::getParameterCaseOption | ( | const String & | language | ) | const |
Method to retrieve an object of type ParameterCaseOption.
This object can be destroyed after use.
| language | The language in which the dataset is written. |
Definition at line 238 of file ParameterListWithCaseOption.cc.
References m_p.
Referenced by Arcane::CaseOptionMultiExtended::_search(), and Arcane::CaseOptionMultiSimpleT< T >::_search().
Retrieves the parameter with name param_name.
Returns a null string if no parameter with this name exists.
If the parameter is present multiple times, only the last value is returned.
Definition at line 198 of file ParameterListWithCaseOption.cc.
References m_p.
Referenced by Arcane::StringVariableReplace::replaceWithCmdLineArgs().
|
private |
Implementation.
Definition at line 93 of file ParameterListWithCaseOption.h.
Referenced by addParameterLine(), addParameters(), getParameterCaseOption(), getParameterOrNull(), ParameterListWithCaseOption(), ParameterListWithCaseOption(), and ~ParameterListWithCaseOption().