| 102 | |
| 103 | |
| 104 | void readIfPresent |
| 105 | ( |
| 106 | IOobject& io, |
| 107 | const label sz, |
| 108 | const word& readType |
| 109 | ) |
| 110 | { |
| 111 | autoPtr<fileOperation> readHandler(fileOperation::New(readType)); |
| 112 | fileHandler(readHandler); |
| 113 | |
| 114 | // Read |
| 115 | Pout<< "Reading:" << fileHandler().filePath(io.objectPath()) << endl; |
| 116 | io.readOpt() = IOobject::READ_IF_PRESENT; |
| 117 | read(io, sz); |
| 118 | } |
| 119 | |
| 120 | |
| 121 | // Main program: |
nothing calls this directly
no test coverage detected