65 #ifndef functionObjects_writeObjectsBase_H
66 #define functionObjects_writeObjectsBase_H
82 namespace functionObjects
89 class writeObjectsBase
157 virtual bool write();
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
A list of keyword definitions, which are a keyword followed by any number of values (e....
FunctionObject base class for writing a list of objects registered to the database,...
wordReList writeObjectNames_
Object names requested by the user to be written.
writeObjectsBase(const objectRegistry &obr, const Switch &logRef=logFalse)
Construct from objectRegistry and inheriting function object.
Switch regExp_
Optional switch for regular expression support.
const objectRegistry & writeObr_
Reference to the region objectRegistry.
virtual void writeObject(const regIOobject &obj)
Write the requested registered IO object.
void resetWriteObjectNames(const wordReList &names)
Reset the list of object names to be written.
void operator=(const writeObjectsBase &)=delete
Disallow default bitwise assignment.
const Switch & log_
Reference to the inheriting function object's log variable.
const wordReList & writeObjectNames() const
Return const access to the object names requested to be written.
void resetWriteObjectName(const wordRe &name)
Reset the list of object names to be written to a single regular.
virtual wordList objectNames()
Get the list of field names to be written.
static const Switch logFalse
False switch to which log_ defaults.
virtual ~writeObjectsBase()
Destructor.
virtual bool write()
Write function.
virtual bool read(const dictionary &)
Read the list of objects to be written.
Registry of regIOobjects.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
A wordRe is a word, but can also have a regular expression for matching words.
word name(const bool)
Return a word representation of a bool.