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

Function readBeginList

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

Source from the content-addressed store, hash-verified

125
126
127char Foam::Istream::readBeginList(const char* funcName)
128{
129 token delimiter(*this);
130
131 if (delimiter != token::BEGIN_LIST && delimiter != token::BEGIN_BLOCK)
132 {
133 setBad();
134 FatalIOErrorInFunction(*this)
135 << "Expected a '" << token::BEGIN_LIST
136 << "' or a '" << token::BEGIN_BLOCK
137 << "' while reading " << funcName
138 << ", found " << delimiter.info()
139 << exit(FatalIOError);
140
141 return '\0';
142 }
143
144 return delimiter.pToken();
145}
146
147
148char Foam::Istream::readEndList(const char* funcName)

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