add method restoreFinished and reimplement it in SketchObject

This commit is contained in:
wmayer
2018-12-29 15:27:32 +01:00
parent 6cc2c1147e
commit be5796b2d0
4 changed files with 25 additions and 0 deletions

View File

@@ -129,4 +129,5 @@ void Persistence::restoreFromStream(std::istream& stream)
reader.readElement("Content");
Restore(reader);
reader.readFiles(zipstream);
restoreFinished();
}

View File

@@ -154,6 +154,14 @@ public:
//restore the binary persistence data from a stream. Must have the format used by dumpToStream
void restoreFromStream(std::istream& stream);
private:
/** This method is used at the end of restoreFromStream()
* after all data files have been read in.
* A subclass can set up some internals. The default
* implementation does nothing.
*/
virtual void restoreFinished() {}
};
} //namespace Base