85 #ifndef Foam_substitutionModels_dictionaryValue_H 86 #define Foam_substitutionModels_dictionaryValue_H 95 namespace substitutionModels
102 class dictionaryValue
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;
virtual ~dictionaryValue()=default
Destructor.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
bool processDict(const dictionary &dict, const word &key, string &buffer) const
Main function to process the dictionary.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
TypeName("dictionaryValue")
Runtime type information.
virtual bool valid(const word &keyName) const
Return true of model applies to this keyName.
virtual wordList keys() const
Return a word list of the keys.
auto key(const Type &t) -> typename std::enable_if< std::is_enum< Type >::value, typename std::underlying_type< Type >::type >::type
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.