45 is.
fatalCheck(
"PtrList::readIstream : reading first token");
62 if (delimiter == token::BEGIN_LIST)
64 for (label i=0; i<len; ++i)
66 T*
p = inew(is).ptr();
71 "PtrList::readIstream : " 78 T*
p = inew(is).ptr();
83 "PtrList::readIstream : " 84 "reading the single entry" 87 for (label i=1; i<len; ++i)
105 while (!tok.isPunctuation(token::END_LIST))
112 <<
"Premature EOF after reading " << tok.info() <<
nl 121 else if (len == this->size())
126 T*
p = inew(is).ptr();
139 <<
"incorrect first token, expected <int> or '(', found " 152 this->readIstream(is, inew);
159 this->readIstream(is,
INew<T>());
168 list.readIstream(is, INew<T>());
bool isPunctuation() const noexcept
Token is PUNCTUATION.
errorManipArg< error, int > exit(error &err, const int errNo=1)
patchWriters resize(patchIds.size())
char readEndList(const char *funcName)
End read of list data, ends with ')' or '}'.
InfoProxy< token > info() const
Return info proxy for printing token information to a stream.
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.
void readIstream(Istream &is, const INew &inew)
Read from Istream using Istream constructor class.
void putBack(const token &tok)
Put back a token. Only a single put back is permitted.
constexpr PtrList() noexcept
Default construct.
Istream & operator>>(Istream &, directionInfo &)
char readBeginList(const char *funcName)
Begin read of list data, starts with '(' or '{'.
bool fatalCheck(const char *operation) const
Check IOstream status for given operation.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
A helper class when constructing from an Istream or dictionary.
label labelToken() const
Return label value.
bool isLabel() const noexcept
Token is LABEL.
bool eof() const noexcept
True if end of input seen.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...