36 const word& entryName,
59 else if (
dict.readIfPresent(
"file", fName_))
68 if (isPtr && isPtr->
good())
75 <<
"Cannot open file: " << expandedFile <<
nl 116 os.writeEntry(
"values", this->table_);
120 os.writeEntry(
"file", fName_);
bool isWord() const noexcept
Token is word-variant (WORD, DIRECTIVE)
A class for handling file names.
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)
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.
bool good() const noexcept
True if the managed pointer is non-null.
A class for handling words, derived from Foam::string.
void initialise()
Check the table for size and consistency.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
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.
virtual bool isStream() const noexcept
True if this entry is a stream.
const token & peek() const noexcept
Failsafe peek at what the next read would return, including handling of any putback.
void checkITstream(const ITstream &is, const word &keyword) const
Check after reading if the input token stream has unconsumed tokens remaining or if there were no tok...
virtual void writeData(Ostream &os) const
Write coefficients in dictionary format.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
bool skip(label n=1) noexcept
Move tokenIndex relative to the current position.
Registry of regIOobjects.
virtual ITstream & stream() const =0
Return token stream, if entry is a primitive entry.
virtual void writeEntries(Ostream &os) const
Write keywords only in dictionary format.
An input stream of tokens.
A keyword and a list of tokens is an 'entry'.
Table(const word &entryName, const dictionary &dict, const objectRegistry *obrPtr=nullptr)
Construct from entry name, dictionary and optional registry.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...