33const Foam::word Foam::functionObjects::properties::resultsName_ =
64 return found(objectName);
70 const word& objectName
73 if (!
found(objectName))
78 return subDict(objectName);
102 if (triggeri != getTrigger())
104 set(
"triggerIndex", triggeri);
116 const word& objectName,
117 const word& entryName
122 return (dictptr && dictptr->
found(entryName));
128 const word& objectName,
129 const word& entryName,
133 const dictionary* dictptr = findDict(objectName);
137 dictptr = dictptr->
findDict(entryName);
152 const word& objectName,
156 const dictionary* dictptr = findDict(resultsName_);
160 const dictionary* objptr = dictptr->findDict(objectName);
175 const word& objectName
180 return (dictptr && dictptr->
found(objectName));
186 if (
found(resultsName_))
197 const word& objectName,
198 const word& entryName
201 if (
found(resultsName_))
203 const dictionary& resultsDict = subDict(resultsName_);
205 if (resultsDict.
found(objectName))
209 for (
const entry& dEntry : objectDict)
213 if (
dict.found(entryName))
227 const word& objectName,
228 const word& entryName
231 if (
found(resultsName_))
233 const dictionary& resultsDict = subDict(resultsName_);
235 if (resultsDict.found(objectName))
239 for (
const entry& dEntry : objectDict)
243 if (
dict.found(entryName))
245 return dict.dictName();
257 const word& objectName
260 DynamicList<word> result;
262 if (
found(resultsName_))
264 const dictionary& resultsDict = subDict(resultsName_);
266 if (resultsDict.found(objectName))
270 for (
const entry& dEntry : objectDict)
274 result.append(
dict.toc());
288 const word& objectName,
292 if (
found(resultsName_))
294 const dictionary& resultsDict = subDict(resultsName_);
296 if (resultsDict.
found(objectName))
302 os <<
" Type: " << dataFormat <<
nl;
308 os <<
" " << result <<
nl;
321 if (
found(resultsName_))
323 const dictionary& resultsDict = subDict(resultsName_);
325 for (
const word& objectName : resultsDict.sortedToc())
327 os <<
"Object: " << objectName <<
endl;
329 writeResultEntries(objectName,
os);
propsDict readIfPresent("fields", acceptFields)
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
void append(const T &val)
Copy append an element to the end of this list.
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,...
void transfer(List< T > &list)
Transfer the contents of the argument List into this list and annul the argument list.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Functions to compute SHA1 message digest according to the NIST specification FIPS-180-1.
std::string str(const bool prefixed=false) const
The digest (40-byte) text representation, optionally with '_' prefix.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const dictionary * findDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary pointer if present (and it is a dictionary) otherwise return nullptr...
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
dictionary()
Default construct, a top-level empty dictionary.
bool remove(const word &keyword)
Remove an entry specified by keyword.
friend class entry
Declare friendship with the entry class for IO.
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find an entry (const access) with the given keyword.
wordList sortedToc() const
Return the sorted table of contents.
entry * set(entry *entryPtr)
Assign a new entry, overwriting any existing entry.
A keyword and a list of tokens is an 'entry'.
properties(const properties &)=delete
No copy construct.
wordList objectNames() const
Return list of object names.
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 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.
label getTrigger() const
Get the current trigger index.
wordList objectResultNames() const
Return list of objects with results.
A class for handling words, derived from Foam::string.
static const word null
An empty word.
OBJstream os(runTime.globalPath()/outputName)
List< word > wordList
List of word.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void add(DimensionedField< scalar, GeoMesh > &result, const dimensioned< scalar > &dt1, const DimensionedField< scalar, GeoMesh > &f2)
constexpr char nl
The newline '\n' character (0x0a).