OpendTect  6.3
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | List of all members
ProbeManager Class Reference

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

Inheritance diagram for ProbeManager:
[legend]

Public Member Functions

ProbeManagerclone () const
 
 mDeclInstanceCreatedNotifierAccess (ProbeManager)
 
- 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
 

Static Public Member Functions

static ProbeManagergetInstance ()
 
- 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 Member Functions

 ProbeManager ()
 
 ~ProbeManager ()
 
virtual SaveablegetSaver (const SharedObject &) const
 
template<class T >
doFetch (const ObjID &, uiRetVal &) const
 
ProbegtProbe (const ObjID &) const
 
- Protected Member Functions inherited from SaveableManager
 SaveableManager (const IOObjContext &, bool autosv, bool tempobjsonly=false)
 
virtual ChangeRecordergetChangeRecorder (const SharedObject &) const
 
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(ProbeManager) public RefMan< ProbefetchForEdit (const ObjID &, uiRetVal &)
 
ConstRefMan< Probefetch (const ObjID &) const
 
RefMan< ProbefetchForEdit (const ObjID &)
 
ObjID getID (const Probe &) const
 
uiRetVal store (const Probe &, const IOPar *ioobjpars=0) const
 uses name to decide whether to create or replace More...
 
uiRetVal store (const Probe &, const ObjID &, const IOPar *ioobjpars=0) const
 
uiRetVal save (const ObjID &) const
 
uiRetVal save (const Probe &) const
 
bool needsSave (const ObjID &) const
 
bool needsSave (const Probe &) const
 
ConstRefMan< Probeget (IdxType) const
 
RefMan< ProbegetForEdit (IdxType)
 

Additional Inherited Members

- Public Types inherited from Monitorable
typedef int ChangeType
 
typedef int64_t IDType
 
typedef int64_t DirtyCountType
 
typedef CNotifier< Monitorable, ChangeDataChangeDataNotifier
 
- 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

ProbeManager::ProbeManager ( )
protected
ProbeManager::~ProbeManager ( )
protected

Member Function Documentation

ProbeManager* ProbeManager::clone ( ) const
inlinevirtual

Reimplemented from NamedMonitorable.

template<class T >
T ProbeManager::doFetch ( const ObjID &  ,
uiRetVal  
) const
protected
ConstRefMan<Probe> ProbeManager::fetch ( const ObjID &  ) const
private
mODTextTranslationClass (ProbeManager) public RefMan<Probe> ProbeManager::fetchForEdit ( const ObjID &  ,
uiRetVal  
)
private
RefMan<Probe> ProbeManager::fetchForEdit ( const ObjID &  )
private
ConstRefMan<Probe> ProbeManager::get ( IdxType  ) const
private
RefMan<Probe> ProbeManager::getForEdit ( IdxType  )
private
ObjID ProbeManager::getID ( const Probe ) const
private
static ProbeManager& ProbeManager::getInstance ( )
static
virtual Saveable* ProbeManager::getSaver ( const SharedObject ) const
protectedvirtual

Implements SaveableManager.

Probe* ProbeManager::gtProbe ( const ObjID &  ) const
protected
ProbeManager::mDeclInstanceCreatedNotifierAccess ( ProbeManager  )
bool ProbeManager::needsSave ( const ObjID &  ) const
private
bool ProbeManager::needsSave ( const Probe ) const
private
uiRetVal ProbeManager::save ( const ObjID &  ) const
private
uiRetVal ProbeManager::save ( const Probe ) const
private
uiRetVal ProbeManager::store ( const Probe ,
const IOPar ioobjpars = 0 
) const
private

uses name to decide whether to create or replace

uiRetVal ProbeManager::store ( const Probe ,
const ObjID &  ,
const IOPar ioobjpars = 0 
) const
private

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