Merge branch 'dvc-persist' from iwbnwif

See https://github.com/wxWidgets/wxWidgets/pull/541
This commit is contained in:
Vadim Zeitlin
2017-12-15 00:28:16 +01:00
5 changed files with 414 additions and 4 deletions

View File

@@ -204,6 +204,9 @@ protected:
/**
Base class for persistent object adapters.
See @ref overview_persistence for an overview of persistent objects within
wxWidgets.
wxWidgets persistence framework is non-intrusive, i.e. can work with the
classes which have no relationship to nor knowledge of it. To allow this,
an intermediate persistence adapter is used: this is just a simple object
@@ -292,13 +295,14 @@ protected:
bool SaveValue(const wxString& name, T value) const;
/**
Restore the value saved by Save().
Restore a value saved by SaveValue().
@param name
The same name as was used by Save().
The same name as was used by SaveValue().
@param value
Non-@NULL pointer which will be filled with the value if it was
read successfully or not modified if it wasn't.
Non-@NULL pointer to the same type that was passed to SaveValue().
The pointed to object will be filled with the saved value if it
was read successfully or not modified otherwise.
@return
@true if the value was successfully read or @false if it was not
found or an error occurred.