34const Foam::word Foam::functionObjects::stateFunctionObject::resultsName_ =
52 time_.functionObjects().propsDict()
73 return stateDict().getObjectDict(
name());
79 return stateDict().clearTrigger();
85 return stateDict().getTrigger();
94 return stateDict().setTrigger(triggeri);
100 const word& entryName
103 return stateDict().foundObjectProperty(
name(), entryName);
109 const word& entryName,
113 return stateDict().getObjectDict(
name(), entryName,
dict);
119 const word& objectName,
120 const word& entryName,
124 return stateDict().getObjectDict(objectName, entryName,
dict);
130 const word& entryName
133 return stateDict().objectResultType(
name(), entryName);
139 const word& objectName,
140 const word& entryName
143 return stateDict().objectResultType(objectName, entryName);
150 return stateDict().objectResultEntries(
name());
157 const word& objectName
160 return stateDict().objectResultEntries(objectName);
169 return stateDict().writeResultEntries(
name(),
os);
175 const word& objectName,
179 return stateDict().writeResultEntries(objectName,
os);
188 return stateDict().writeAllResultEntries(
os);
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
const functionObjectList & functionObjects() const
Return the list of function objects.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const word & resultType() const noexcept
The result type-name.
functionObjects::properties & propsDict()
Storage for function object properties, derived from IOdictionary. Provides functionality to read/wri...
Base class for function objects, adding functionality to read/write state information (data required ...
bool getObjectDict(const word &objectName, const word &entryName, dictionary &dict) const
Set dictionary from named object, return true if set.
bool getDict(const word &entryName, dictionary &dict) const
Set dictionary, return true if set.
bool setTrigger(const label triggeri)
Set new trigger index.
word objectResultType(const word &objectName, const word &entryName) const
Return the type of result.
bool foundProperty(const word &entryName) const
Return true if the property exists.
void writeAllResultEntries(Ostream &os) const
Write the results entries for all objects to stream.
void writeResultEntries(Ostream &os) const
Write the results entries for all objects to stream.
void clearTrigger()
Remove the trigger index from the properties.
const functionObjects::properties & stateDict() const
Return a const reference to the state dictionary.
label getTrigger() const
Get the current trigger index.
dictionary & propertyDict()
Return access to the property dictionary.
wordList objectResultEntries() const
Retrieve the result entries.
Virtual base class for function objects with a reference to Time.
const Time & time_
Reference to the time database.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.