78#ifndef Foam_substitutionModels_fileRegEx_H
79#define Foam_substitutionModels_fileRegEx_H
97 public substitutionModel
102 const fileName path_;
105 HashTable<string> entries_;
108 const string sectionSeparator_;
111 const string matchSeparator_;
120 fileRegEx(
const fileRegEx&) =
delete;
123 void operator=(
const fileRegEx&) =
delete;
143 virtual bool valid(
const word& keyName)
const;
146 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 fileRegEx substitution model.
virtual bool apply(const word &key, string &buffer) const
Apply substitutions to this string buffer.
virtual ~fileRegEx()=default
Destructor.
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.
TypeName("fileRegEx")
Runtime type information.
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.