| 125 | |
| 126 | |
| 127 | char 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 | |
| 148 | char Foam::Istream::readEndList(const char* funcName) |