| 81 | } |
| 82 | |
| 83 | bool NParticleReader::canRead( const std::string &fileName ) |
| 84 | { |
| 85 | try |
| 86 | { |
| 87 | IFFFile iffFile( fileName ); |
| 88 | IFFFile::Chunk::ChunkIterator itBegin = iffFile.root()->childrenBegin(); |
| 89 | |
| 90 | if ( itBegin->isGroup() && itBegin->groupName().id() == IFFFile::Tag( "CACH" ).id() ) |
| 91 | { |
| 92 | return true; |
| 93 | } |
| 94 | } |
| 95 | catch( ... ) |
| 96 | { |
| 97 | } |
| 98 | |
| 99 | return false; |
| 100 | } |
| 101 | |
| 102 | bool NParticleReader::open() |
| 103 | { |