| 3037 | } |
| 3038 | |
| 3039 | IndexedIOPtr 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 | |
| 3056 | void StreamIndexedIO::remove( const IndexedIO::EntryID &name ) |
| 3057 | { |
no test coverage detected