14#ifndef ARCANE_UTILS_INTERNAL_PARAMETEROPTION_H
15#define ARCANE_UTILS_INTERNAL_PARAMETEROPTION_H
21#include "arcane/utils/String.h"
22#include "arcane/utils/List.h"
45class ARCANE_UTILS_EXPORT
50 static constexpr const char* ANY_TAG =
"/";
51 static constexpr Integer ANY_INDEX = -1;
52 static constexpr Integer GET_INDEX = -2;
83 void setIndex(
const Integer index);
128class ARCANE_UTILS_EXPORT
230class ARCANE_UTILS_EXPORT
231ParameterOptionElement
255class ARCANE_UTILS_EXPORT
Declarations of types used in Arcane.
Modifiable view of an array of type T.
Class representing a part of a data set option address. Note that in XML, the index starts at 1 and n...
ParameterOptionAddrPart()
Constructor. Sets the tag to ANY_TAG and the index to ANY_INDEX.
bool isAny() const
isAny if ANY_TAG and ANY_INDEX.
bool operator==(const ParameterOptionAddrPart &other) const
Equality operator. The ANY_TAG tag is equal to all tags. The ANY_INDEX index is equal to all indices....
void setTag(const StringView tag)
Class representing a data set option address. This address must be in the form: "tag/tag[index]/tag" ...
bool operator==(const ParameterOptionAddr &other) const
Equality operator. This operator takes into account ANY_TAG / ANY_INDEX. The address "aaa[1]/bbb[2]/A...
ParameterOptionAddrPart * addrPart(const Integer index_of_part) const
Method allowing a part of the address to be retrieved. If the address ends with an ANY_TAG[ANY_INDEX]...
ParameterOptionAddr(StringView addr_str_view)
Constructor.
Integer nbAddrPart() const
Method allowing the number of parts of the address to be retrieved. Parts equal to "ANY_TAG[ANY_INDEX...
Integer nbIndexToGetInAddr() const
Method allowing the number of "GET_INDEX" in the address to be known.
bool getIndexInAddr(const ParameterOptionAddr &addr_with_get_index, ArrayView< Integer > indexes) const
Method allowing one or more indices to be retrieved in the address.
void addAddrPart(ParameterOptionAddrPart *part)
Method allowing a part to be added to the end of the current address.
Class representing a collection of XML elements (a set of Arcane options).
bool isExistAddr(const ParameterOptionAddr &addr)
Method allowing to know if an address is present in the list of elements. ANY_TAG/ANY_INDEX are taken...
Integer countAddr(const ParameterOptionAddr &addr)
Method allowing to know how many times an address is present in the list of elements....
void addParameter(const String ¶meter, const String &value)
Method allowing an option parameter to be added to the list of option parameters.
void getIndexInAddr(const ParameterOptionAddr &addr_with_get_index, UniqueArray< Integer > &indexes)
Method allowing one or more indices to be retrieved in the list of addresses.
View of a UTF-8 character string.
Unicode character string.
1D data vector with value semantics (STL style).
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Int32 Integer
Type representing an integer.