| 109 | |
| 110 | |
| 111 | void Foam::ISstream::readWordToken(token& t) |
| 112 | { |
| 113 | word* wPtr = new word; |
| 114 | |
| 115 | if (read(*wPtr).bad()) |
| 116 | { |
| 117 | delete wPtr; |
| 118 | t.setBad(); |
| 119 | } |
| 120 | else if (token::compound::isCompound(*wPtr)) |
| 121 | { |
| 122 | t = token::compound::New(*wPtr, *this).ptr(); |
| 123 | delete wPtr; |
| 124 | } |
| 125 | else |
| 126 | { |
| 127 | t = wPtr; |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | |
| 132 | Foam::Istream& Foam::ISstream::read(token& t) |
no test coverage detected