35 namespace functionObjects
51 bool Foam::functionObjects::writeDictionary::tryDirectory
72 if (dict.
digest() != digests_[dictI])
87 digests_[dictI] = dict.
digest();
99 Foam::functionObjects::writeDictionary::writeDictionary
134 dictNames_ = uniqueNames.toc();
136 digests_.setSize(dictNames_.size(),
SHA1Digest());
138 Info<<
type() <<
" " <<
name() <<
": monitoring dictionaries:" <<
nl;
139 if (dictNames_.size())
143 Info<<
" " << dictNames_[i] <<
endl;
164 bool firstDict =
true;
167 if (obr_.foundObject<
dictionary>(dictNames_[i]))
172 if (dict.
digest() != digests_[i])
183 digests_[i] = dict.
digest();
192 bool processed = tryDirectory(i, obr_.time().timeName(), firstDict);
196 processed = tryDirectory(i, obr_.time().constant(), firstDict);
201 processed = tryDirectory(i, obr_.time().system(), firstDict);
206 Info<<
" Unable to locate dictionary " << dictNames_[i]
A HashTable with keys but without contents.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual bool read(const dictionary &)
Read the writeDictionary data.
A list of keyword definitions, which are a keyword followed by any number of values (e...
static Stream & writeDivider(Stream &os)
Write the standard file section divider.
const word dictName() const
Return the local dictionary name (final part of scoped name)
static word defaultRegion
Return the default region name.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Abstract base-class for Time/database function objects.
virtual ~writeDictionary()
Destructor.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Macros for easy insertion into run-time selection tables.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
bool read(const char *, int32_t &)
A class for handling words, derived from string.
word name(const complex &)
Return a string representation of a complex.
IOobject dictIO(dictName, runTime.constant(), mesh, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE)
virtual bool write()
Write the selected dictionaries.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
virtual bool execute()
Execute, currently does nothing.
addToRunTimeSelectionTable(functionObject, blendingFactor, dictionary)
SHA1Digest digest() const
Return the SHA1 digest of the dictionary contents.
defineTypeNameAndDebug(fvMeshFunctionObject, 0)
Registry of regIOobjects.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.