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

Method createSubdirectory

src/IECore/StreamIndexedIO.cpp:3039–3054  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3037}
3038
3039IndexedIOPtr StreamIndexedIO::createSubdirectory( const IndexedIO::EntryID &name )
3040{
3041 assert( m_node );
3042 if ( m_node->hasChild(name) )
3043 {
3044 throw IOException( "Child '" + name.value() + "' already exists!" );
3045 }
3046 writable( name );
3047 DirectoryNode *childNode = m_node->addChild( name );
3048 if ( !childNode )
3049 {
3050 throw IOException( "StreamIndexedIO: Could not insert child '" + name.value() + "'" );
3051 }
3052 StreamIndexedIO::Node *newNode = new StreamIndexedIO::Node( m_node->m_idx.get(), childNode );
3053 return duplicate(*newNode);
3054}
3055
3056void StreamIndexedIO::remove( const IndexedIO::EntryID &name )
3057{

Callers 4

testMkdirMethod · 0.80
createChildMethod · 0.80
storeSampleTimesMethod · 0.80
saveMethod · 0.80

Calls 5

IOExceptionFunction · 0.85
hasChildMethod · 0.45
valueMethod · 0.45
addChildMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected