OpendTect  6.3
Public Member Functions | Protected Member Functions | Private Member Functions | List of all members
Pick::SetManager Class Reference

Manages all stored Pick::Set's. More...

Inheritance diagram for Pick::SetManager:
[legend]

Public Member Functions

 mDeclareSaveableManagerInstance (SetManager)
 
- Public Member Functions inherited from SaveableManager
SaveableManagerclone () const
 
void handleUnsavedLastCall ()
 
void addNew (const SharedObject &, const ObjID &, const IOPar *, bool) const
 
- Public Member Functions inherited from NamedMonitorable
 NamedMonitorable (const char *nm=0)
 
 NamedMonitorable (const NamedObject &)
 
virtual ~NamedMonitorable ()
 
 NamedMonitorable (const NamedMonitorable &)
 
NamedMonitorableoperator= (const NamedMonitorable &)
 
bool operator== (const NamedMonitorable &) const
 
bool operator!= (const NamedMonitorable &oth) const
 
ChangeType compareWith (const Monitorable &) const
 
virtual NamedMonitorablegetClone () const
 
virtual BufferString getName () const
 
virtual void setName (const char *)
 
- Public Member Functions inherited from Monitorable
 Monitorable (const Monitorable &)
 
virtual ~Monitorable ()
 
Monitorableoperator= (const Monitorable &)
 
bool operator== (const Monitorable &) const
 
virtual ChangeDataNotifierobjectChanged () const
 
virtual Notifier< Monitorable > & objectToBeDeleted () const
 
virtual void touch () const
 
virtual DirtyCountType dirtyCount () 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
 
- Public Member Functions inherited from NamedObject
 NamedObject (const char *nm=0)
 
 NamedObject (const NamedObject &oth)
 
virtual ~NamedObject ()
 
NamedObjectoperator= (const NamedObject &)
 
bool operator== (const NamedObject &oth) const
 
virtual const OD::Stringname () const
 
bool getNameFromPar (const IOPar &)
 
void putNameInPar (IOPar &) const
 

Protected Member Functions

 SetManager ()
 
 ~SetManager ()
 
virtual SaveablegetSaver (const SharedObject &) const
 
virtual ChangeRecordergetChangeRecorder (const SharedObject &) const
 
template<class T >
doFetch (const ObjID &, uiRetVal &, const char *cat=0) const
 
SetgtSet (const ObjID &) const
 
- Protected Member Functions inherited from SaveableManager
 SaveableManager (const IOObjContext &, bool autosv, bool tempobjsonly=false)
 
virtual void addCBsToObj (const SharedObject &)
 
virtual void setAuxOnAdd ()
 
ObjID getID (const SharedObject &) const
 
uiRetVal store (const SharedObject &, const IOPar *) const
 
uiRetVal store (const SharedObject &, const ObjID &, const IOPar *) const
 
uiRetVal save (const SharedObject &) const
 
bool needsSave (const SharedObject &) const
 
IOObjgetIOObj (const DBKey &) const
 
IOObjgetIOObjByName (const char *) const
 
void setEmpty ()
 
IdxType gtIdx (const char *) const
 
IdxType gtIdx (const ObjID &) const
 
IdxType gtIdx (const SharedObject &) const
 
SharedObjectgtObj (IdxType) const
 
const SaveablesaverFor (const ObjID &) const
 
uiRetVal doSave (const ObjID &) const
 
void add (const SharedObject &, const ObjID &, AccessLocker &, const IOPar *, bool) const
 
void dbmEntryRemovedCB (CallBacker *)
 
void survChgCB (CallBacker *)
 
void appExitCB (CallBacker *)
 
void objDelCB (CallBacker *)
 
void objChgCB (CallBacker *)
 
- Protected Member Functions inherited from NamedMonitorable
void copyAll (const NamedMonitorable &)
 
- Protected Member Functions inherited from Monitorable
 Monitorable ()
 
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...
 

Private Member Functions

mODTextTranslationClass(Pick::SetManager) public RefMan< SetfetchForEdit (const ObjID &, uiRetVal &, const char *category=0)
 
ConstRefMan< Setfetch (const ObjID &) const
 
RefMan< SetfetchForEdit (const ObjID &)
 
ObjID getID (const Set &) const
 
uiRetVal store (const Set &, const IOPar *ioobjpars=0) const
 uses name to decide whether to create or replace More...
 
uiRetVal store (const Set &, const ObjID &, const IOPar *ioobjpars=0) const
 
uiRetVal save (const ObjID &) const
 
uiRetVal save (const Set &) const
 
bool needsSave (const ObjID &) const
 
bool needsSave (const Set &) const
 
bool isPolygon (const ObjID &) const
 
bool hasCategory (const ObjID &, const char *) const
 
ConstRefMan< Setget (IdxType) const
 
RefMan< SetgetForEdit (IdxType)
 

Additional Inherited Members

- Public Types inherited from Monitorable
typedef int ChangeType
 
typedef int64_t IDType
 
typedef int64_t DirtyCountType
 
typedef CNotifier< Monitorable, ChangeDataChangeDataNotifier
 
- Static Public Member Functions inherited from NamedMonitorable
static Notifier< NamedMonitorable > & instanceCreated ()
 
static ChangeType cNameChange ()
 
- 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
 
- Protected Attributes inherited from SaveableManager
ObjectSet< Saveablesavers_
 
ObjectSet< ChangeRecorderchgrecs_
 
const IOObjContextctxt_
 
const bool autosaveable_
 
const bool tempobjsonly_
 
- Protected Attributes inherited from Monitorable
Threads::Lock accesslock_
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Detailed Description

Manages all stored Pick::Set's.

If a set is not yet loaded, then it will be loaded by fetch().

Constructor & Destructor Documentation

Pick::SetManager::SetManager ( )
protected
Pick::SetManager::~SetManager ( )
protected

Member Function Documentation

template<class T >
T Pick::SetManager::doFetch ( const ObjID &  ,
uiRetVal ,
const char *  cat = 0 
) const
protected
ConstRefMan<Set> Pick::SetManager::fetch ( const ObjID &  ) const
private
mODTextTranslationClass (Pick::SetManager) public RefMan<Set> Pick::SetManager::fetchForEdit ( const ObjID &  ,
uiRetVal ,
const char *  category = 0 
)
private
RefMan<Set> Pick::SetManager::fetchForEdit ( const ObjID &  )
private
ConstRefMan<Set> Pick::SetManager::get ( IdxType  ) const
private
virtual ChangeRecorder* Pick::SetManager::getChangeRecorder ( const SharedObject ) const
protectedvirtual

Reimplemented from SaveableManager.

RefMan<Set> Pick::SetManager::getForEdit ( IdxType  )
private
ObjID Pick::SetManager::getID ( const Set ) const
private
virtual Saveable* Pick::SetManager::getSaver ( const SharedObject ) const
protectedvirtual

Implements SaveableManager.

Set* Pick::SetManager::gtSet ( const ObjID &  ) const
protected
bool Pick::SetManager::hasCategory ( const ObjID &  ,
const char *   
) const
private
bool Pick::SetManager::isPolygon ( const ObjID &  ) const
private
Pick::SetManager::mDeclareSaveableManagerInstance ( SetManager  )
bool Pick::SetManager::needsSave ( const ObjID &  ) const
private
bool Pick::SetManager::needsSave ( const Set ) const
private
uiRetVal Pick::SetManager::save ( const ObjID &  ) const
private
uiRetVal Pick::SetManager::save ( const Set ) const
private
uiRetVal Pick::SetManager::store ( const Set ,
const IOPar ioobjpars = 0 
) const
private

uses name to decide whether to create or replace

uiRetVal Pick::SetManager::store ( const Set ,
const ObjID &  ,
const IOPar ioobjpars = 0 
) const
private

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