Go to the documentation of this file.
39 const word startTimeName =
63 filePtrs_.setSize(names_.size());
81 Foam::functionObjects::logFiles::logFiles
93 Foam::functionObjects::logFiles::logFiles
121 <<
"Request for files() can only be done by the master process"
134 <<
"Request for file(i) can only be done by the master process"
138 if (!filePtrs_.set(i))
141 <<
"File pointer at index " << i <<
" not allocated"
PtrList< OFstream > filePtrs_
File pointer.
A class for handling words, derived from Foam::string.
const objectRegistry & fileObr_
Reference to the region objectRegistry.
const Time & time() const
Return time.
PtrList< OFstream > & files()
Return access to the files.
static word timeName(const scalar t, const int precision=precision_)
static bool master(const label communicator=worldComm)
Am I the master process.
const Type & value() const
Return const reference to value.
wordList names_
File names.
virtual void resetName(const word &name)
Reset the list of names to a single name entry.
#define forAll(list, i)
Loop across all elements in list.
Registry of regIOobjects.
virtual bool read(const dictionary &dict)
Read.
word name(const complex &c)
Return string representation of complex.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
void initStream(Ostream &os) const
Initialise the output stream for writing.
errorManip< error > abort(error &err)
virtual void resetNames(const wordList &names)
Reset the list of names from a wordList.
Output to file stream, using an OSstream.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual autoPtr< OFstream > createFile(const word &name, scalar timeValue) const
Return autoPtr to a new file for a given time.
virtual void resetFile(const word &name)
Reset internal file pointer to new file with new name.
const wordList & names() const
Return const access to the names.
Base class for writing single files from the function objects.
virtual bool write()
Write function.
virtual dimensionedScalar startTime() const
Return start time.
virtual void createFiles()
Create the output file.