37 writeObjectNames_.clear();
38 writeObjectNames_.append(name);
47 writeObjectNames_.clear();
48 writeObjectNames_.append(names);
63 allNames.append(names);
69 <<
" not found in database. Available objects:" 79 allNames.append(name);
84 <<
"writeObjects: object " << name
85 <<
" not found in database. Available objects:" 91 return move(allNames);
virtual bool write()
Write function.
const objectRegistry & writeObr_
Reference to the region objectRegistry.
#define forAll(list, i)
Loop across all elements in list.
bool empty() const
Return true if the UList is empty (ie, size() is zero)
const word & name() const
Return name.
A list of keyword definitions, which are a keyword followed by any number of values (e...
void size(const label)
Override size to be inconsistent with allocated storage.
wordList names() const
Return the list of names of the IOobjects.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, y/n, t/f, or none/any.
bool foundObject(const word &name) const
Is the named Type found?
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
void resetWriteObjectNames(const wordReList &names)
Reset the list of object names to be written.
virtual bool writeTimeDict() const
Write time dictionary to the <time>/uniform directory.
bool writeTime() const
Return true if this is a write time.
A class for handling words, derived from string.
void resetWriteObjectName(const wordRe &name)
Reset the list of object names to be written to a single regular.
const Switch & log_
Reference to the inheriting function object's log variable.
wordReList writeObjectNames_
Object names requested by the user to be written.
A wordRe is a word, but can also have a regular expression for matching words.
Switch regExp_
Optional switch for regular expression support.
const Time & time() const
Return time.
virtual void writeObject(const regIOobject &obj)
Write the requested registered IO object.
const wordReList & writeObjectNames() const
Return const access to the object names requested to be written.
virtual ~writeObjectsBase()
Destructor.
word name(const complex &)
Return a string representation of a complex.
void setSize(const label)
Reset size of List.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
List< Key > sortedToc() const
Return the table of contents as a sorted list.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
writeObjectsBase(const objectRegistry &obr, const Switch &logRef)
Construct from objectRegistry and inheriting function object.
virtual wordList objectNames()
Get the list of field names to be written.
List< Key > toc() const
Return the table of contents.
virtual bool write(const bool write=true) const
Write using setting from DB.
Registry of regIOobjects.
virtual bool read(const dictionary &)
Read the list of objects to be written.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.