14#include "arccore/common/StringDictionary.h"
16#include "arccore/base/String.h"
17#include "arccore/common/List.h"
32:
public std::exception
48 typedef std::map<String, String> StringDictType;
56 StringDictType m_dictionary;
73: m_p(new
Impl(*rhs.m_p))
92 m_p->m_dictionary.insert(std::make_pair(key, value));
101 auto i = m_p->m_dictionary.find(key);
103 if (i != m_p->m_dictionary.end()) {
105 m_p->m_dictionary.erase(i);
114find(
const String& key,
bool throw_exception)
const
116 auto i = m_p->m_dictionary.find(key);
118 if (i != m_p->m_dictionary.end())
120 else if (throw_exception)
133 for (
const auto& x : m_p->m_dictionary) {
135 values.add(x.second);
void clear()
Supprime tous les éléments de la collection.
void fill(StringList ¶m_names, StringList &values) const
Remplit keys et values avec les valeurs correspondantes du dictionnaire.
StringDictionary()
Implémentation.
~StringDictionary()
Libère les ressources.
String remove(const String &key)
Supprime la valeur associée à key.
void add(const String &key, const String &value)
Ajoute le couple (key,value) au dictionnaire.
String find(const String &key, bool throw_exception=false) const
Retourne la valeur associée à key.
Chaîne de caractères unicode.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
List< String > StringList
Tableau de chaînes de caractères unicode.