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

Method getFileSequenceValue

src/IECore/FileSequenceParameter.cpp:186–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186FileSequencePtr FileSequenceParameter::getFileSequenceValue( const StringData *value ) const
187{
188 std::string fileSequenceStr = value->readable();
189
190 if ( fileSequenceStr.find_first_of( ' ' ) == std::string::npos )
191 {
192 if ( mustExist() )
193 {
194 FileSequencePtr result = nullptr;
195 ls( fileSequenceStr, result, m_minSequenceSize );
196 return result;
197 }
198 else if ( fileSequenceStr.size() == 0 )
199 {
200 return nullptr;
201 }
202 }
203 return new FileSequence( fileSequenceStr );
204}
205
206FileSequencePtr FileSequenceParameter::getFileSequenceValue() const
207{

Callers 9

testMethod · 0.95
testMinSequenceSizeMethod · 0.95
doOperationMethod · 0.80
doOperationMethod · 0.80
doOperationMethod · 0.80
doOperationMethod · 0.80
doOperationMethod · 0.80
doOperationMethod · 0.80
doOperationMethod · 0.80

Calls 3

readableMethod · 0.80
getValueFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected