39 const word startTimeName =
81Foam::functionObjects::logFiles::logFiles
93Foam::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"
Output to file stream as an OSstream, normally using std::ofstream for the actual output.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
static bool master(const label communicator=worldComm)
True if process corresponds to the master rank in the communicator.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual void resetNames(const wordList &names)
Reset the list of names from a wordList.
virtual void createFiles()
Create the output file.
PtrList< OFstream > filePtrs_
File pointer.
PtrList< OFstream > & files()
Return access to the files.
virtual void resetName(const word &name)
Reset the list of names to a single name entry.
wordList names_
File names.
const wordList & names() const
Return const access to the names.
virtual bool write()
Write function.
Base class for writing single files from the function objects.
virtual autoPtr< OFstream > newFileAtStartTime(const word &name) const
Return autoPtr to a new file using the simulation start time.
writeFile(const objectRegistry &obr, const fileName &prefix, const word &name="undefined", const bool writeToFile=true, const string &ext=".dat")
Construct from objectRegistry, prefix, fileName.
virtual bool read(const dictionary &dict)
Read.
void initStream(Ostream &os) const
Initialise the output stream for writing.
virtual void resetFile(const word &name)
Reset internal file pointer to new file with new name.
const objectRegistry & fileObr_
Reference to the region objectRegistry.
Registry of regIOobjects.
A class for handling words, derived from Foam::string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
List< word > wordList
List of word.
errorManip< error > abort(error &err)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
#define forAll(list, i)
Loop across all elements in list.