| 421 | |
| 422 | |
| 423 | bool Foam::regIOobject::headerOk() |
| 424 | { |
| 425 | // Note: Should be consistent with IOobject::typeHeaderOk(false) |
| 426 | |
| 427 | bool ok = true; |
| 428 | |
| 429 | fileName fName(filePath()); |
| 430 | |
| 431 | ok = Foam::fileHandler().readHeader(*this, fName, type()); |
| 432 | |
| 433 | if (!ok && IOobject::debug) |
| 434 | { |
| 435 | IOWarningInFunction(fName) |
| 436 | << "failed to read header of file " << objectPath() |
| 437 | << endl; |
| 438 | } |
| 439 | |
| 440 | return ok; |
| 441 | } |
| 442 | |
| 443 | |
| 444 | void Foam::regIOobject::operator=(const IOobject& io) |
no test coverage detected