154#ifndef Foam_functionObjects_foamReport_H
155#define Foam_functionObjects_foamReport_H
190 HashTable<Tuple2<label, DynamicList<label>>>
modelKeys_;
258 virtual bool write();
A HashTable similar to std::unordered_map.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
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.
const word & name() const noexcept
Return the name of this functionObject.
Replaces user-supplied keywords by run-time computed values in a text file.
void setStaticBuiltins()
Set static builtin entries.
void operator=(const foamReport &)=delete
No copy assignment.
HashTable< Tuple2< label, DynamicList< label > > > modelKeys_
Mapping from keyword to substitution model index and line numbers of template file where keyword is u...
PtrList< substitutionModel > substitutions_
List of substitution models.
void setDynamicBuiltins()
Set dynamic (potentially changing per execution step) builtin entries.
bool debugKeys_
Debug flag to write all known keys.
foamReport(const foamReport &)=delete
No copy construct.
List< string > templateContents_
Template file contents split into lines.
bool parseTemplate(const fileName &fName)
Parse the template and collect keyword information.
fileName templateFile_
Path to user-supplied template.
virtual ~foamReport()=default
Destructor.
bool apply(Ostream &os) const
Apply the substitution models to the template.
virtual bool execute()
Execute the function-object operations.
TypeName("foamReport")
Runtime type information.
virtual bool write()
Write the function-object results.
virtual bool read(const dictionary &)
Read the function-object dictionary.
Base class for function objects, adding functionality to read/write state information (data required ...
stateFunctionObject(const stateFunctionObject &)=delete
No copy construct.
Base class for writing single files from the function objects.
writeFile(const objectRegistry &obr, const fileName &prefix, const word &name="undefined", const bool writeToFile=true, const string &ext=".dat")
Construct from objectRegistry, prefix, fileName.
Base class for substitution models.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
Function objects are OpenFOAM utilities to ease workflow configurations and enhance workflows.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.