----------------------------------------------------------------------------
| 444 | |
| 445 | //---------------------------------------------------------------------------- |
| 446 | int vtkHDFReader::CanReadFile(const char* name) |
| 447 | { |
| 448 | // First make sure the file exists. This prevents an empty file |
| 449 | // from being created on older compilers. |
| 450 | vtksys::SystemTools::Stat_t fs; |
| 451 | if (vtksys::SystemTools::Stat(name, &fs) != 0) |
| 452 | { |
| 453 | vtkErrorMacro("File does not exist: " << name); |
| 454 | return 0; |
| 455 | } |
| 456 | if (!this->Impl->Open(name)) |
| 457 | { |
| 458 | return 0; |
| 459 | } |
| 460 | this->Impl->Close(); |
| 461 | return 1; |
| 462 | } |
| 463 | |
| 464 | //---------------------------------------------------------------------------- |
| 465 | void vtkHDFReader::SelectionModifiedCallback(vtkObject*, unsigned long, void* clientdata, void*) |