78 #ifndef Foam_substitutionModels_fileRegEx_H 79 #define Foam_substitutionModels_fileRegEx_H 88 namespace substitutionModels
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;
133 fileRegEx(
const dictionary&
dict,
const Time& time);
143 virtual bool valid(
const word& keyName)
const;
146 virtual bool apply(
const word&
key,
string& buffer)
const;
virtual bool apply(const word &key, string &buffer) const
Apply substitutions to this string buffer.
virtual bool valid(const word &keyName) const
Return true of model applies to this keyName.
A class for handling words, derived from Foam::string.
auto key(const Type &t) -> std::enable_if_t< std::is_enum_v< Type >, std::underlying_type_t< Type > >
virtual wordList keys() const
Return a word list of the keys.
virtual ~fileRegEx()=default
Destructor.
TypeName("fileRegEx")
Runtime type information.