36 const word& entryName,
44 dict.readEntry(
"file", fName_);
54 <<
"Cannot open file." <<
nl 86 os.writeEntry(
"file", fName_);
A class for handling file names.
Templated table container function where data are read from file.
const word const dictionary & dict
errorManipArg< error, int > exit(error &err, const int errNo=1)
List< Tuple2< scalar, Type > > table_
Table data.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
constexpr char nl
The newline '\n' character (0x0a)
virtual void writeData(Ostream &os) const
Write in dictionary format.
refPtr< fileOperation > fileHandler(std::nullptr_t)
Delete current file handler - forwards to fileOperation::handler()
virtual void writeData(Ostream &os) const
Write in dictionary format.
Base class for table with bounds handling, interpolation and integration.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
A class for handling words, derived from Foam::string.
void initialise()
Check the table for size and consistency.
TableFile(const word &entryName, const dictionary &dict, const objectRegistry *obrPtr=nullptr)
Construct from entry name and "file" found in dictionary.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
Generic input stream using a standard (STL) stream.
string & expand(const bool allowEmpty=false)
Inplace expand initial tags, tildes, and all occurrences of environment variables as per stringOps::e...
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
bool good() const noexcept
True if next operation might succeed.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Registry of regIOobjects.
virtual void writeEntries(Ostream &os) const
Write keywords only in dictionary format.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...