| 146 | |
| 147 | |
| 148 | char 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 | |
| 169 | Foam::Istream& Foam::Istream::operator()() const |