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_);
Base class for table with bounds handling, interpolation and integration.
void initialise()
Check the table for size and consistency.
virtual void writeEntries(Ostream &os) const
Write keywords only in dictionary format.
List< Tuple2< scalar, Type > > table_
Table data.
Templated table container function.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
const word const dictionary & dict
An input stream of tokens.
const token & peek() const
Failsafe peek at what the next read would return,.
void skip(label n=1)
Move tokenIndex relative to the current position.
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.
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,...
void checkITstream(const ITstream &is, const word &keyword) const
A keyword and a list of tokens is an 'entry'.
virtual ITstream & stream() const =0
Return token stream, if entry is a primitive entry.
virtual bool isStream() const noexcept
Return true if this entry is a stream.
A class for handling file names.
Registry of regIOobjects.
string & expand(const bool allowEmpty=false)
bool isWord() const noexcept
Token is word-variant (WORD, DIRECTIVE)
A class for handling words, derived from Foam::string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
OBJstream os(runTime.globalPath()/outputName)
const fileOperation & fileHandler()
Get current file handler.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a)