36 namespace functionObjects
52 bool Foam::functionObjects::writeDictionary::tryDirectory
69 if (dictIO.typeHeaderOk<IOdictionary>(
true))
71 IOdictionary
dict(dictIO);
73 if (dict.
digest() != digests_[dictI])
88 digests_[dictI] = dict.
digest();
135 dictNames_ = uniqueNames.toc();
137 digests_.setSize(dictNames_.size(),
SHA1Digest());
139 Info<<
type() <<
" " <<
name() <<
": monitoring dictionaries:" <<
nl;
140 if (dictNames_.size())
144 Info<<
" " << dictNames_[i] <<
endl;
165 bool firstDict =
true;
168 if (obr_.foundObject<
dictionary>(dictNames_[i]))
173 if (dict.
digest() != digests_[i])
184 digests_[i] = dict.
digest();
193 bool processed = tryDirectory(i, obr_.time().timeName(), firstDict);
197 processed = tryDirectory(i, obr_.time().constant(), firstDict);
202 processed = tryDirectory(i, obr_.time().system(), firstDict);
207 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.
SHA1Digest digest() const
Return the SHA1 digest of the dictionary contents.
A list of keyword definitions, which are a keyword followed by any number of values (e...
writeDictionary(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
static Stream & writeDivider(Stream &os)
Write the standard file section divider.
addToRunTimeSelectionTable(functionObject, Qdot, dictionary)
static word defaultRegion
Return the default region name.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Abstract base-class for Time/database functionObjects.
virtual ~writeDictionary()
Destructor.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Macros for easy insertion into run-time selection tables.
const word dictName() const
Return the local dictionary name (final part of scoped name)
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.
defineTypeNameAndDebug(Qdot, 0)
virtual bool write()
Write the selected dictionaries.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
virtual bool execute()
Execute, currently does nothing.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
Registry of regIOobjects.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.