I have a document structure implemented with boost serialization, however when I save/load a document it can take a long time. I would need to have a progress indication of how far the save/load has gotten.
Is there a way to use boost iostr开发者_JS百科eams source for this ? That way I would be able to implement a source taking the data from my input stream.
More ideas ?
Maybe try creating a window that just states
"Saving to file..." / "Loading from file..."
that gets destroyed once the saving/loading operation ends.
You can also have it update the "Save to file" message to "File saved" once the save operation completes.
It's not an ideal solution but at least your users won't be scratching their heads wondering what the save/load operation is doing. I've looked for a similar solution myself but found none. Let me know if you find something.
精彩评论