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

Method open

src/IECore/StreamIndexedIO.cpp:2880–2891  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2878}
2879
2880void 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
2893StreamIndexedIO::~StreamIndexedIO()
2894{

Callers

nothing calls this directly

Calls 3

openStreamMethod · 0.80
getMethod · 0.45
rootMethod · 0.45

Tested by

no test coverage detected