| 154 | |
| 155 | |
| 156 | bool Foam::fileFormats::surfaceFormatsCore::checkSupport |
| 157 | ( |
| 158 | const wordHashSet& available, |
| 159 | const word& ext, |
| 160 | const bool verbose, |
| 161 | const word& functionName |
| 162 | ) |
| 163 | { |
| 164 | if (available.found(ext)) |
| 165 | { |
| 166 | return true; |
| 167 | } |
| 168 | else if (verbose) |
| 169 | { |
| 170 | wordList toc = available.toc(); |
| 171 | SortableList<word> known(toc.xfer()); |
| 172 | |
| 173 | Info<<"Unknown file extension for " << functionName |
| 174 | << " : " << ext << nl |
| 175 | <<"Valid types: ("; |
| 176 | // compact output: |
| 177 | forAll(known, i) |
| 178 | { |
| 179 | Info<<" " << known[i]; |
| 180 | } |
| 181 | Info<<" )" << endl; |
| 182 | } |
| 183 | |
| 184 | return false; |
| 185 | } |
| 186 | |
| 187 | |
| 188 | // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // |
no test coverage detected