156 #ifndef functionObjects_foamReport_H 157 #define functionObjects_foamReport_H 168 class substitutionModel;
170 namespace functionObjects
179 public stateFunctionObject,
192 HashTable<Tuple2<label, DynamicList<label>>>
modelKeys_;
260 virtual bool write();
bool parseTemplate(const fileName &fName)
Parse the template and collect keyword information.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
bool debugKeys_
Debug flag to write all known keys.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
virtual bool read(const dictionary &)
Read foamReport settings.
const word & name() const noexcept
Return the name of this functionObject.
virtual bool execute()
Execute foamReport.
void setStaticBuiltins()
Set static builtin entries.
TypeName("foamReport")
Runtime type information.
virtual ~foamReport()=default
Destructor.
HashTable< Tuple2< label, DynamicList< label > > > modelKeys_
Mapping from keyword to substitution model index and line numbers of template file where keyword is u...
A class for handling words, derived from Foam::string.
PtrList< substitutionModel > substitutions_
List of substitution models.
bool apply(Ostream &os) const
Apply the substitution models to the template.
void setDynamicBuiltins()
Set dynamic (potentially changing per execution step) builtin entries.
OBJstream os(runTime.globalPath()/outputName)
virtual bool write()
Write foamReport results.
void operator=(const foamReport &)=delete
No copy assignment.
Replaces user-supplied keywords by run-time computed values in a text file.
List< string > templateContents_
Template file contents split into lines.
foamReport(const foamReport &)=delete
No copy construct.
fileName templateFile_
Path to user-supplied template.