OpendTect  6.3
Protected Member Functions | Protected Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
Saveable Class Referenceabstract

Object that can be saved at any time. More...

Inheritance diagram for Saveable:
[legend]

Protected Member Functions

virtual uiRetVal doStore (const IOObj &) const =0
 
bool isSave (const IOObj &) const
 
- Protected Member Functions inherited from Monitorable
 Monitorable ()
 
virtual MonitorablegetClone () const =0
 
void copyAll (const Monitorable &)
 
void sendChgNotif (AccessLocker &, const ChangeData &) const
 calls objectChanged with released lock More...
 
void sendChgNotif (AccessLocker &, ChangeType, IDType) const
 calls objectChanged with released lock More...
 
void sendDelNotif () const
 
void stopChangeNotifications () const
 
void resumeChangeNotifications () const
 
template<class T >
getMemberSimple (const T &) const
 the get function used by mImplSimpleMonitoredGet More...
 
template<class TMember , class TSetTo >
void setMemberSimple (TMember &, TSetTo, ChangeType, IDType)
 the set function used by mImplSimpleMonitoredSet More...
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers () const
 Call from the destructor of your inherited object. More...
 

Protected Attributes

const SharedObjectobject_
 
Threads::Atomic< bool > objectalive_
 
DBKey storekey_
 
IOPar ioobjpars_
 
DirtyCounter lastsavedirtycount_
 
- Protected Attributes inherited from Monitorable
Threads::Lock accesslock_
 

Private Member Functions

mODTextTranslationClass(Saveable) public ~Saveable ()
 
 mDeclAbstractMonitorableAssignment (Saveable)
 
const SharedObjectobject () const
 
bool objectAlive () const
 
void setObject (const SharedObject &)
 
 mImplSimpleMonitoredGetSet (inline, key, setKey, DBKey, storekey_, 0) mImplSimpleMonitoredGetSet(inline
 
virtual uiRetVal save () const
 
virtual uiRetVal store (const IOObj &) const
 
bool needsSave () const
 
virtual void setJustSaved () const
 
DirtyCountType lastSavedDirtyCount () const
 
DirtyCountType curDirtyCount () const
 
void attachCBToObj ()
 
void detachCBFromObj ()
 
void objDelCB (CallBacker *)
 

Static Private Member Functions

static ChangeType cSaveSucceededChangeType ()
 
static ChangeType cSaveFailedChangeType ()
 

Private Attributes

 ioObjPars
 
 setIOObjPars
 
 IOPar
 
 ioobjpars_
 

Additional Inherited Members

- Public Types inherited from Monitorable
typedef int ChangeType
 
typedef int64_t IDType
 
typedef int64_t DirtyCountType
 
typedef CNotifier< Monitorable, ChangeDataChangeDataNotifier
 
- Public Member Functions inherited from Monitorable
 Monitorable (const Monitorable &)
 
virtual ~Monitorable ()
 
Monitorableoperator= (const Monitorable &)
 
bool operator== (const Monitorable &) const
 
virtual Monitorableclone () const
 
virtual ChangeDataNotifierobjectChanged () const
 
virtual Notifier< Monitorable > & objectToBeDeleted () const
 
virtual void touch () const
 
virtual DirtyCountType dirtyCount () const
 
virtual ChangeType compareWith (const Monitorable &) const
 
void sendChangeNotification (const ChangeData &) const
 
void sendEntireObjectChangeNotification () const
 
void transferNotifsTo (const Monitorable &, const CallBacker *onlyfor=0) const
 
- 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 inherited from Monitorable
static Notifier< Monitorable > & instanceCreated ()
 defines static instanceCreated() More...
 
static ChangeType cEntireObjectChange ()
 
static ChangeType cNoChange ()
 
static IDType cUnspecChgID ()
 
static IDType cEntireObjectChgID ()
 
static ChangeType changeNotificationTypeOf (CallBacker *)
 
- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 
- Protected Types inherited from Monitorable
typedef Threads::Atomic< DirtyCountTypeDirtyCounter
 

Detailed Description

Object that can be saved at any time.

Constructor & Destructor Documentation

mODTextTranslationClass (Saveable) public Saveable::~Saveable ( )
private

Member Function Documentation

void Saveable::attachCBToObj ( )
private
static ChangeType Saveable::cSaveFailedChangeType ( )
inlinestaticprivate
static ChangeType Saveable::cSaveSucceededChangeType ( )
inlinestaticprivate
DirtyCountType Saveable::curDirtyCount ( ) const
private
void Saveable::detachCBFromObj ( )
private
virtual uiRetVal Saveable::doStore ( const IOObj ) const
protectedpure virtual
bool Saveable::isSave ( const IOObj ) const
protected
DirtyCountType Saveable::lastSavedDirtyCount ( ) const
inlineprivate
Saveable::mDeclAbstractMonitorableAssignment ( Saveable  )
private
Saveable::mImplSimpleMonitoredGetSet ( inline  ,
key  ,
setKey  ,
DBKey  ,
storekey_  ,
 
)
private
bool Saveable::needsSave ( ) const
private
void Saveable::objDelCB ( CallBacker )
private
const SharedObject* Saveable::object ( ) const
private
bool Saveable::objectAlive ( ) const
inlineprivate
virtual uiRetVal Saveable::save ( ) const
privatevirtual
virtual void Saveable::setJustSaved ( ) const
privatevirtual
void Saveable::setObject ( const SharedObject )
private
virtual uiRetVal Saveable::store ( const IOObj ) const
privatevirtual

Member Data Documentation

Saveable::ioObjPars
private
Saveable::ioobjpars_
private
IOPar Saveable::ioobjpars_
protected
Saveable::IOPar
private
DirtyCounter Saveable::lastsavedirtycount_
mutableprotected
const SharedObject* Saveable::object_
protected
Threads::Atomic<bool> Saveable::objectalive_
protected
Saveable::setIOObjPars
private
DBKey Saveable::storekey_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2017