| 2878 | } |
| 2879 | |
| 2880 | void StreamIndexedIO::open( StreamFilePtr file, const IndexedIO::EntryIDList &root, const CompoundData *options ) |
| 2881 | { |
| 2882 | IndexPtr newIndex = new Index( file, options ); |
| 2883 | newIndex->openStream(); |
| 2884 | m_node = new StreamIndexedIO::Node( newIndex.get(), newIndex->root() ); |
| 2885 | setRoot( root ); |
| 2886 | |
| 2887 | // \todo Currently in Append mode, the nodes lazily loaded will not be editable. |
| 2888 | // In order to fully support it, we should probably read all indexes in memory, |
| 2889 | // deallocate their data blocks, mark Index as changed and force saving all of |
| 2890 | // the nodes in the main index, or commit them backwardly. |
| 2891 | } |
| 2892 | |
| 2893 | StreamIndexedIO::~StreamIndexedIO() |
| 2894 | { |
nothing calls this directly
no test coverage detected