functionObject base class for writing single files More...
Public Member Functions | |
writeFile (const objectRegistry &obr, const word &prefix) | |
Construct from objectRegistry and prefix. More... | |
writeFile (const writeFile &)=delete | |
Disallow default bitwise copy construction. More... | |
~writeFile () | |
Destructor. More... | |
void | initStream (Ostream &os) const |
Initialise the output stream for writing. More... | |
fileName | baseFileDir () const |
Return the base directory for output. More... | |
fileName | baseTimeDir () const |
Return the base directory for the current time value. More... | |
Omanip< int > | valueWidth (const label offset=0) const |
Return the value width when writing to stream with optional offset. More... | |
void | writeCommented (Ostream &os, const string &str) const |
Write a commented string to stream. More... | |
void | writeTabbed (Ostream &os, const string &str) const |
Write a tabbed string to stream. More... | |
void | writeHeader (Ostream &os, const string &str) const |
Write a commented header to stream. More... | |
void | writeTime (Ostream &os) const |
Write the current time to stream. More... | |
template<class Type > | |
void | writeHeaderValue (Ostream &os, const string &property, const Type &value) const |
Write a (commented) header property and value pair. More... | |
label | charWidth () const |
Return width of character stream output. More... | |
void | operator= (const writeFile &)=delete |
Disallow default bitwise assignment. More... | |
Static Public Attributes | |
static const word | outputPrefix |
Directory prefix. More... | |
static label | addChars = 8 |
Additional characters for writing. More... | |
Protected Attributes | |
const objectRegistry & | fileObr_ |
Reference to the region objectRegistry. More... | |
const word | prefix_ |
Prefix. More... | |
functionObject base class for writing single files
Definition at line 55 of file writeFile.H.
writeFile | ( | const objectRegistry & | obr, |
const word & | prefix | ||
) |
Construct from objectRegistry and prefix.
Definition at line 84 of file writeFile.C.
~writeFile | ( | ) |
Destructor.
Definition at line 97 of file writeFile.C.
void initStream | ( | Ostream & | os | ) | const |
Initialise the output stream for writing.
Definition at line 42 of file writeFile.C.
References writeFile::charWidth(), Foam::scientific(), IOstream::setf(), and Ostream::width().
Referenced by logFiles::createFiles(), and logFile::logFile().
Foam::fileName baseFileDir | ( | ) | const |
Return the base directory for output.
Definition at line 49 of file writeFile.C.
References polyMesh::defaultRegion, and IOobject::name().
Referenced by logFiles::createFiles().
Foam::fileName baseTimeDir | ( | ) | const |
Return the base directory for the current time value.
Definition at line 67 of file writeFile.C.
References fileName::name().
Foam::Omanip< int > valueWidth | ( | const label | offset = 0 | ) | const |
Return the value width when writing to stream with optional offset.
Definition at line 73 of file writeFile.C.
References IOstream::defaultPrecision(), Foam::offset(), and Foam::setw().
Write a commented string to stream.
Definition at line 109 of file writeFile.C.
References Foam::setf(), and Foam::setw().
Referenced by fvCellSet::writeFileHeader(), fieldValueDelta::writeFileHeader(), wallHeatTransferCoeff::writeFileHeader(), forceCoeffs::writeFileHeader(), and cloudInfo::writeFileHeader().
Write a tabbed string to stream.
Definition at line 120 of file writeFile.C.
References Foam::setw(), and Foam::tab.
Referenced by wallHeatTransferCoeff::writeFileHeader(), forceCoeffs::writeFileHeader(), cloudInfo::writeFileHeader(), and residuals::writeFileHeader().
Write a commented header to stream.
Definition at line 130 of file writeFile.C.
References Foam::nl, Foam::setf(), and Foam::setw().
Referenced by wallHeatTransferCoeff::writeFileHeader(), forceCoeffs::writeFileHeader(), and cloudInfo::writeFileHeader().
void writeTime | ( | Ostream & | os | ) | const |
Write the current time to stream.
Definition at line 141 of file writeFile.C.
References Foam::setw().
Referenced by logFile::writeTime().
Write a (commented) header property and value pair.
Definition at line 29 of file writeFileTemplates.C.
References writeFile::charWidth(), Foam::endl(), Foam::setf(), and Foam::setw().
Referenced by fvCellSet::writeFileHeader(), fieldValueDelta::writeFileHeader(), and forceCoeffs::writeFileHeader().
Foam::label charWidth | ( | ) | const |
Return width of character stream output.
Definition at line 103 of file writeFile.C.
References IOstream::defaultPrecision().
Referenced by writeFile::initStream(), logFile::write(), and writeFile::writeHeaderValue().
|
delete |
Disallow default bitwise assignment.
|
protected |
Reference to the region objectRegistry.
Definition at line 63 of file writeFile.H.
Referenced by logFiles::createFiles().
|
protected |
|
static |
Directory prefix.
Definition at line 72 of file writeFile.H.
Referenced by CloudFunctionObject< CloudType >::CloudFunctionObject(), irregular::irregular(), main(), probes::prepare(), layerAverage::write(), streamlines::write(), and Foam::writeEk().
|
static |
Additional characters for writing.
Definition at line 75 of file writeFile.H.