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