| 129 | } |
| 130 | |
| 131 | IFileReader::ConfidenceLevel AbstractFileReader::GetConfidenceLevel() const |
| 132 | { |
| 133 | if (d->m_Stream) |
| 134 | { |
| 135 | if (*d->m_Stream) |
| 136 | return Supported; |
| 137 | } |
| 138 | else |
| 139 | { |
| 140 | if (itksys::SystemTools::FileExists(Utf8Util::Local8BitToUtf8(this->GetInputLocation()).c_str(), true)) |
| 141 | { |
| 142 | return Supported; |
| 143 | } |
| 144 | } |
| 145 | return Unsupported; |
| 146 | } |
| 147 | |
| 148 | //////////// µS Registration & Properties ////////////// |
| 149 |
nothing calls this directly
no test coverage detected