MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / readEndList

Function readEndList

src/OpenFOAM/db/IOstreams/IOstreams/Istream.C:148–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146
147
148char Foam::Istream::readEndList(const char* funcName)
149{
150 token delimiter(*this);
151
152 if (delimiter != token::END_LIST && delimiter != token::END_BLOCK)
153 {
154 setBad();
155 FatalIOErrorInFunction(*this)
156 << "Expected a '" << token::END_LIST
157 << "' or a '" << token::END_BLOCK
158 << "' while reading " << funcName
159 << ", found " << delimiter.info()
160 << exit(FatalIOError);
161
162 return '\0';
163 }
164
165 return delimiter.pToken();
166}
167
168
169Foam::Istream& Foam::Istream::operator()() const

Callers

nothing calls this directly

Calls 4

setBadFunction · 0.85
pTokenMethod · 0.80
exitFunction · 0.50
infoMethod · 0.45

Tested by

no test coverage detected