Go to the documentation of this file.
39 #ifndef functionObjectFile_H
40 #define functionObjectFile_H
182 const string& property,
const word prefix_
Prefix.
void writeTime(Ostream &os) const
Write the current time to stream.
autoPtr< OFstream > filePtr_
File pointer.
virtual Omanip< int > valueWidth(const label offset=0) const
Return the value width when writing to stream with optional offset.
A class for handling words, derived from string.
A class for handling file names.
virtual fileName baseFileDir() const
Return the base directory for output.
functionObjectFile(const functionObjectFile &)
Disallow default bitwise copy construct.
label charWidth() const
Return width of character stream output.
void writeTabbed(Ostream &os, const string &str) const
Write a tabbed string to stream.
void read(const dictionary &dict)
Read.
Registry of regIOobjects.
OFstream & file()
Return access to the file (if only 1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Istream and Ostream manipulators taking arguments.
virtual void initStream(Ostream &os) const
Initialise the output stream for writing.
static const word outputPrefix
Directory prefix.
A list of keyword definitions, which are a keyword followed by any number of values (e....
void writeHeader(Ostream &os, const string &str) const
Write a commented header to stream.
void operator=(const functionObjectFile &)
Disallow default bitwise assignment.
bool writeToFile() const
Return true if can write to file.
void writeHeaderValue(Ostream &os, const string &property, const Type &value) const
Write a (commented) header property and value pair.
virtual void resetFile(const word &name)
Reset internal file pointer to new file with new name.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
const objectRegistry & obr_
Reference to the database.
static label addChars
Additional characters for writing.
virtual autoPtr< OFstream > createFile(const word &name) const
Return an autoPtr to a new file.
Base class for output file data handling.
word fileName_
Name of file.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void writeCommented(Ostream &os, const string &str) const
Write a commented string to stream.
virtual fileName baseTimeDir() const
Return the base directory for the current time value.
label writePrecision_
Write precision.
word name(const complex &)
Return a string representation of a complex.
bool writeToFile_
Flag to enable/disable writing to file.
virtual ~functionObjectFile()
Destructor.