This function object writes dictionaries on start-up, and on change. More...
Public Member Functions | |
TypeName ("writeDictionary") | |
Runtime type information. More... | |
writeDictionary (const word &name, const objectRegistry &, const dictionary &, const bool loadFromFiles=false) | |
Construct for given objectRegistry and dictionary. More... | |
virtual | ~writeDictionary () |
Destructor. More... | |
virtual const word & | name () const |
Return name of the writeDictionary. More... | |
virtual void | read (const dictionary &) |
Read the writeDictionary data. More... | |
virtual void | execute () |
Execute, currently does nothing. More... | |
virtual void | end () |
Execute at the final time-loop, currently does nothing. More... | |
virtual void | timeSet () |
Called when time was set at the end of the Time::operator++. More... | |
virtual void | write () |
Write the writeDictionary. More... | |
virtual void | updateMesh (const mapPolyMesh &) |
Update for changes of mesh. More... | |
virtual void | movePoints (const polyMesh &) |
Update for changes of mesh. More... | |
Protected Member Functions | |
bool | tryDirectory (const label dictI, const word &location, bool &firstDict) |
Helper function to write the dictionary if found at location. More... | |
writeDictionary (const writeDictionary &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const writeDictionary &) |
Disallow default bitwise assignment. More... | |
Protected Attributes | |
word | name_ |
Name of this set of writeDictionary. More... | |
const objectRegistry & | obr_ |
Reference to the database. More... | |
wordList | dictNames_ |
Names of dictionaries to monitor. More... | |
List< SHA1Digest > | digests_ |
List of changed dictionaries (only those registered to database) More... | |
This function object writes dictionaries on start-up, and on change.
Definition at line 60 of file writeDictionary.H.
|
protected |
Disallow default bitwise copy construct.
writeDictionary | ( | const word & | name, |
const objectRegistry & | obr, | ||
const dictionary & | dict, | ||
const bool | loadFromFiles = false |
||
) |
Construct for given objectRegistry and dictionary.
Allow the possibility to load fields from files
Definition at line 90 of file writeDictionary.C.
References dict, and Foam::read().
|
virtual |
Destructor.
Definition at line 110 of file writeDictionary.C.
Helper function to write the dictionary if found at location.
Definition at line 42 of file writeDictionary.C.
References dict, dictIO(), Foam::endl(), Foam::Info, Foam::nl, and Foam::type().
|
protected |
Disallow default bitwise assignment.
TypeName | ( | "writeDictionary" | ) |
Runtime type information.
|
inlinevirtual |
Return name of the writeDictionary.
Definition at line 122 of file writeDictionary.H.
References writeDictionary::name_.
|
virtual |
Read the writeDictionary data.
Definition at line 116 of file writeDictionary.C.
References dict, Foam::endl(), forAll, Foam::Info, dictionary::lookup(), Foam::nl, List::setSize(), HashTable< nil, word, string::hash >::toc(), and Foam::type().
|
virtual |
Execute, currently does nothing.
Definition at line 140 of file writeDictionary.C.
References dict, dictionaryName::dictName(), dictionary::digest(), Foam::endl(), forAll, Foam::Info, Foam::nl, Foam::type(), and IOobject::writeDivider().
|
virtual |
Execute at the final time-loop, currently does nothing.
Definition at line 196 of file writeDictionary.C.
|
virtual |
Called when time was set at the end of the Time::operator++.
Definition at line 202 of file writeDictionary.C.
|
virtual |
Write the writeDictionary.
Definition at line 208 of file writeDictionary.C.
|
inlinevirtual |
Update for changes of mesh.
Definition at line 143 of file writeDictionary.H.
|
inlinevirtual |
Update for changes of mesh.
Definition at line 147 of file writeDictionary.H.
|
protected |
Name of this set of writeDictionary.
Definition at line 67 of file writeDictionary.H.
Referenced by writeDictionary::name().
|
protected |
Reference to the database.
Definition at line 70 of file writeDictionary.H.
|
protected |
Names of dictionaries to monitor.
Definition at line 73 of file writeDictionary.H.
|
protected |
List of changed dictionaries (only those registered to database)
Definition at line 76 of file writeDictionary.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.