85#ifndef Foam_substitutionModels_dictionaryValue_H
86#define Foam_substitutionModels_dictionaryValue_H
104 public substitutionModel
118 const word separator_;
121 HashTable<string> entries_;
127 dictionaryValue(
const dictionaryValue&) =
delete;
130 void operator=(
const dictionaryValue&) =
delete;
163 virtual bool valid(
const word& keyName)
const;
166 virtual bool apply(
const word& key,
string& buffer)
const;
A HashTable similar to std::unordered_map.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A class for handling file names.
The dictionaryValue substitution model. Dictionaries can be retrieved from an object registry,...
virtual bool apply(const word &key, string &buffer) const
Apply substitutions to this string buffer.
TypeName("dictionaryValue")
Runtime type information.
virtual bool valid(const word &keyName) const
Return true of model applies to this keyName.
virtual ~dictionaryValue()=default
Destructor.
bool processDict(const dictionary &dict, const word &key, string &buffer) const
Main function to process the dictionary.
virtual wordList keys() const
Return a word list of the keys.
A class for handling words, derived from Foam::string.
List< word > wordList
List of word.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.