Go to the documentation of this file.
36 const word& entryName,
44 const entry* eptr =
dict.findEntry(entryName, keyType::LITERAL);
57 dict.checkITstream(is, entryName);
59 else if (
dict.readIfPresent(
"file", fName_))
68 if (isPtr && isPtr->
good())
70 *isPtr >> this->table_;
75 <<
"Cannot open file: " << expandedFile <<
nl
85 dict.readEntry(
"values", this->table_);
116 os.writeEntry(
"values", this->table_);
120 os.writeEntry(
"file", fName_);
A keyword and a list of tokens is an 'entry'.
A class for handling words, derived from Foam::string.
A class for handling file names.
virtual ITstream & stream() const =0
Return token stream, if entry is a primitive entry.
Table(const word &entryName, const dictionary &dict, const objectRegistry *obrPtr=nullptr)
Construct from entry name, dictionary and optional registry.
virtual bool isStream() const noexcept
Return true if this entry is a stream.
const fileOperation & fileHandler()
Get current file handler.
bool isWord() const noexcept
Token is word-variant (WORD, DIRECTIVE)
Registry of regIOobjects.
An input stream of tokens.
virtual void writeData(Ostream &os) const
Write in dictionary format.
bool good() const noexcept
True if the managed pointer is non-null.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
Templated table container function.
errorManipArg< error, int > exit(error &err, const int errNo=1)
void skip(label n=1)
Move tokenIndex relative to the current position.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
virtual void writeData(Ostream &os) const
Write coefficients in dictionary format.
string & expand(const bool allowEmpty=false)
virtual void writeEntries(Ostream &os) const
Write keywords only in dictionary format.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Base class for table with bounds handling, interpolation and integration.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const token & peek() const
Failsafe peek at what the next read would return,.