MCPcopy Create free account
hub / github.com/ImageEngine/cortex / canRead

Method canRead

src/IECoreScene/NParticleReader.cpp:83–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83bool 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
102bool NParticleReader::open()
103{

Callers

nothing calls this directly

Calls 6

TagClass · 0.85
childrenBeginMethod · 0.80
isGroupMethod · 0.80
idMethod · 0.80
groupNameMethod · 0.80
rootMethod · 0.45

Tested by

no test coverage detected