47#ifndef functionObjects_properties_H
48#define functionObjects_properties_H
56namespace functionObjects
70 static const word resultsName_;
116 const word& objectName,
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,
172 const word& objectName,
173 const word& entryName,
181 const word& objectName,
182 const word& entryName,
183 const Type& defaultValue = Type(
Zero)
190 const word& objectName,
191 const word& entryName,
205 const word& objectName,
206 const word& entryName
212 const word& objectName,
213 const word& entryName
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
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,...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Storage for function object properties, derived from IOdictionary. Provides functionality to read/wri...
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
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 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)
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
static constexpr const zero Zero
Global zero (0)