47#ifndef functionObjects_properties_H
48#define functionObjects_properties_H
70 static const word resultsName_;
117 const word& entryName
133 const word& objectName,
134 const word& entryName,
142 const word& objectName,
143 const word& entryName,
144 const Type& defaultValue = Type(
Zero)
151 const word& objectName,
152 const word& entryName,
160 const word& objectName,
161 const word& entryName,
171 const word& objectName,
179 const word& objectName,
180 const word& entryName,
188 const word& objectName,
189 const word& entryName,
190 const Type& defaultValue = Type(
Zero)
197 const word& objectName,
198 const word& entryName,
212 const word& objectName,
213 const word& entryName
219 const word& objectName,
220 const word& entryName
IOdictionary(const IOobject &io, const dictionary *fallback=nullptr)
Construct given an IOobject and optional fallback dictionary content.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
dictionary()
Default construct, a top-level empty dictionary.
void operator=(const properties &)=delete
No copy assignment.
void setObjectResult(const word &objectName, const word &entryName, const Type &value)
Add result from named object.
properties(const properties &)=delete
No copy construct.
Type getObjectProperty(const word &objectName, const word &entryName, const Type &defaultValue=Type(Zero)) const
Retrieve generic property from named object.
wordList objectNames() const
Return list of object names.
dictionary & propertyDict(const word &objectName)
Return access to the property dictionary.
dictionary & getObjectDict(const word &objectName)
Get dictionary for named object. Creates one if required.
bool setTrigger(const label triggeri)
Set new trigger index.
bool foundObjectProperty(const word &objectName, const word &entryName) const
Return true if the property exists.
bool hasResultObjectEntry(const word &objectName, const word &entryName) const
Return true if the object with objectName exists and has entryName in its results.
word objectResultType(const word &objectName, const word &entryName) const
Return the type of result.
void writeAllResultEntries(Ostream &os) const
Write the results entries for all objects to stream.
void setObjectProperty(const word &objectName, const word &entryName, const Type &value)
Add generic property from named object.
void writeResultEntries(Ostream &os) const
Write the results entries for all objects to stream.
bool hasResultObject(const word &objectName) const
Return true if the object with objectName exists in results.
bool getObjectResultDict(const word &objectName, dictionary &dict) const
Get dictionary of object results, return true if set.
bool hasObjectDict(const word &objectName) const
Return true if the object with objectName exists.
void clearTrigger()
Remove the trigger index from the properties.
wordList objectResultEntries(const word &objectName) const
Return result entries for named object.
virtual ~properties()=default
Destructor.
label getTrigger() const
Get the current trigger index.
wordList objectResultNames() const
Return list of objects with results.
Type getObjectResult(const word &objectName, const word &entryName, const Type &defaultValue=Type(Zero)) const
Retrieve result from named object.
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.
List< word > wordList
List of word.
static constexpr const zero Zero
Global zero (0).