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_)
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.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
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.
static bool master(const label communicator=0)
Am I the master process.
#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.
functionObject base class for writing single files
virtual bool write()
Write function.
virtual dimensionedScalar startTime() const
Return start time.
virtual void createFiles()
Create the output file.