14#include "arccore/common/StringDictionary.h"
16#include "arccore/base/String.h"
17#include "arccore/common/List.h"
32:
public std::exception
49 typedef std::map<String, String> StringDictType;
57 StringDictType m_dictionary;
93 m_p->m_dictionary.insert(std::make_pair(key, value));
102 auto i =
m_p->m_dictionary.find(key);
104 if (i !=
m_p->m_dictionary.end()) {
106 m_p->m_dictionary.erase(i);
115find(
const String& key,
bool throw_exception)
const
117 auto i =
m_p->m_dictionary.find(key);
119 if (i !=
m_p->m_dictionary.end())
121 else if (throw_exception)
134 for (
const auto& x :
m_p->m_dictionary) {
136 values.add(x.second);
void clear()
Removes all elements from the collection.
Implementation of the unicode string dictionary.
void fill(StringList ¶m_names, StringList &values) const
Fills keys and values with the corresponding values from the dictionary.
StringDictionary()
Implementation.
~StringDictionary()
Releases resources.
String remove(const String &key)
Removes the value associated with key.
void add(const String &key, const String &value)
Adds the (key, value) pair to the dictionary.
Impl * m_p
Implementation.
String find(const String &key, bool throw_exception=false) const
Returns the value associated with key.
Unicode character string.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
List< String > StringList
Unicode string list.