60 is.
fatalCheck(
"List<char>::readList(Istream&) : reading first token");
87 const auto oldFmt = is.
format(IOstreamOption::BINARY);
90 is.
read(list.
data(), std::streamsize(len));
96 "List<char>::readList(Istream&) : " 97 "reading binary block" 104 <<
"incorrect first token, expected <int>, found "
compound & transferCompoundToken()
Return reference to compound and mark internally as released.
errorManipArg< error, int > exit(error &err, const int errNo=1)
addCompoundToRunTimeSelectionTable(List< complex >, complexList)
void resize(const label len)
Adjust allocated size of list.
void transfer(List< T > &list)
Transfer the contents of the argument List into this list and annul the argument list.
defineCompoundTypeName(List< complex >, complexList)
bool isCompound() const noexcept
Token is COMPOUND.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
constexpr char nl
The newline '\n' character (0x0a)
A token holds an item read from Istream.
T * data() noexcept
Return pointer to the underlying array serving as data storage.
Macros for easy insertion into run-time selection tables.
A templated class for holding compound tokens.
virtual Istream & read(token &)=0
Return next token from stream.
void clear()
Clear the list, i.e. set size to zero.
Istream & readList(Istream &is)
Read List from Istream, discarding contents of existing List.
Type & dynamicCast(U &obj)
A dynamic_cast (for references) that generates FatalError on failed casts.
List< char > charList
A List of chars.
bool fatalCheck(const char *operation) const
Check IOstream status for given operation.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
label labelToken() const
Return label value.
bool isLabel() const noexcept
Token is LABEL.
InfoProxy< token > info() const noexcept
Return info proxy, for printing token information to a stream.
streamFormat format() const noexcept
Get the current stream format.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...