![]() |
OpendTect
6.3
|
Auto-save manager. Singleton class. Works from its own thread. More...
Public Member Functions | |
| void | setEmpty () |
| Threads::Thread & | thread () |
Public Member Functions inherited from CallBacker | |
| CallBacker () | |
| CallBacker (const CallBacker &) | |
| virtual | ~CallBacker () |
| bool | attachCB (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const |
| bool | attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const |
| void | detachCB (const NotifierAccess &, const CallBack &) const |
| void | detachCB (const NotifierAccess *notif, const CallBack &cb) const |
| bool | isNotifierAttached (const NotifierAccess *) const |
| Only for debugging purposes, don't use. More... | |
| virtual bool | isCapsule () const |
| void | stopReceivingNotifications () const |
Static Public Member Functions | |
| static AutoSaver & | getInst () |
Static Public Member Functions inherited from CallBacker | |
| static void | createReceiverForCurrentThread () |
| static void | removeReceiverForCurrentThread () |
Private Member Functions | |
| mODTextTranslationClass(AutoSaver) public void | setActive (bool yn=true) |
| bool | useHiddenMode () const |
| void | setUseHiddenMode (bool yn=true) |
| int | nrSecondsBetweenSaves () const |
| void | setNrSecondsBetweenSaves (int) |
| void | add (const Saveable &) |
| bool | restore (IOStream &, const char *newnm) |
| AutoSaver () | |
| ~AutoSaver () | |
| void | remove (AutoSaveObj *) |
| void | appExitCB (CallBacker *) |
| void | svrDelCB (CallBacker *) |
| void | survChgCB (CallBacker *) |
| void | go () |
| void | handleSurvChg () |
Static Private Member Functions | |
| static const char * | sKeyAutosaved () |
| static void | goCB (CallBacker *) |
Private Attributes | |
| Notifier< AutoSaver > | saveDone |
| Notifier< AutoSaver > | saveFailed |
| Threads::Lock | lock_ |
| Threads::Thread * | thread_ |
| ObjectSet< AutoSaveObj > | asobjs_ |
| bool | isactive_ |
| bool | usehiddenmode_ |
| int | curclockseconds_ |
| int | nrclocksecondsbetweensaves_ |
| Threads::Atomic< bool > | appexits_ |
| Threads::Atomic< bool > | surveychanges_ |
Friends | |
| class | AutoSaveObj |
Additional Inherited Members | |
Protected Member Functions inherited from CallBacker | |
| void | detachAllNotifiers () const |
| Call from the destructor of your inherited object. More... | |
Auto-save manager. Singleton class. Works from its own thread.
Auto-Save can work in 2 modes: Hidden or !Hidden (visible?). When visible, it will simply save as if user explicitly pressed a button or chose a menu item to save.
Hidden mode means it will make a hidden back-up that can be retrieved after an emergency (like power failure, server shutdown, maybe even an OpendTect crash (which never happens, but still :)) ).
The default is Hidden.
|
private |
|
private |
|
private |
|
private |
|
static |
|
private |
|
inlinestaticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
| void OD::AutoSaver::setEmpty | ( | ) |
|
private |
|
private |
|
staticprivate |
|
private |
|
private |
|
inline |
|
private |
|
friend |
|
private |
|
private |
|
private |
|
private |
|
mutableprivate |
|
private |
|
private |
|
private |
|
private |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2017