![]() |
OpendTect
6.3
|
Manages Sequences; reads/writes system or user-defined. More...
Public Types | |
| typedef ObjectSet< Sequence >::size_type | size_type |
| typedef size_type | IdxType |
| typedef ConstRefMan< Sequence > | ConstRef |
Public Types inherited from Monitorable | |
| typedef int | ChangeType |
| typedef int64_t | IDType |
| typedef int64_t | DirtyCountType |
| typedef CNotifier< Monitorable, ChangeData > | ChangeDataNotifier |
Public Member Functions | |
| mDeclMonitorableAssignment (SequenceManager) | |
| bool | isPresent (const char *) const |
| ConstRef | getByName (const char *) const |
| can be null More... | |
| ConstRef | getAny (const char *, bool seismics_if_default=true) const |
| guaranteed non-null More... | |
| ConstRef | getDefault (bool for_seismics=true) const |
| guaranteed non-null More... | |
| ConstRef | getFromPar (const IOPar &, const char *subky=0) const |
| guaranteed non-null More... | |
| size_type | size () const |
| Sequence::Status | statusOf (const Sequence &) const |
| IdxType | indexOf (const char *) const |
| IdxType | indexOf (const Sequence &) const |
| ConstRef | getByIdx (IdxType) const |
| void | getSequenceNames (BufferStringSet &) const |
| bool | needsSave () const |
| uiRetVal | write (bool sys=false, bool applsetup=true) const |
| RefMan< Sequence > | get4Edit (const char *) const |
| void | add (Sequence *) |
| void | removeByName (const char *) |
| ConstRef | getSystemSeq (const char *) const |
| void | rollbackFromCopy (const SequenceManager &) |
| bool | isPresent (const OD::String &s) const |
| ConstRef | getByName (const OD::String &s) const |
| ConstRef | getAny (const OD::String &s, bool fs=true) const |
| IdxType | indexOf (const OD::String &s) const |
| void | removeByName (const OD::String &s) |
Public Member Functions inherited from Monitorable | |
| Monitorable (const Monitorable &) | |
| virtual | ~Monitorable () |
| Monitorable & | operator= (const Monitorable &) |
| bool | operator== (const Monitorable &) const |
| virtual Monitorable * | clone () const |
| virtual ChangeDataNotifier & | objectChanged () 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 | |
| static ChangeType | cSeqAdd () |
| static ChangeType | cSeqRemove () |
| static const char * | sKeyRemoved () |
| static const Sequence & | getRGBBlendColSeq (int) |
| 0=red, 1=green, 2=blue 3=transp More... | |
| static void | deleteInst (SequenceManager *) |
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 () |
Public Attributes | |
| CNotifier< SequenceManager, ChangeData > | nameChange |
| provides name change notif for any of the seqs More... | |
Protected Member Functions | |
| SequenceManager () | |
| ~SequenceManager () | |
| size_type | gtSize () const |
| IdxType | idxOf (const char *) const |
| const Sequence * | gtAny (const char *, bool) const |
| void | doAdd (Sequence *, bool issys) |
| void | addFromPar (const IOPar &, bool) |
| void | rollbackFrom (const SequenceManager &) |
| void | seqChgCB (CallBacker *) |
Protected Member Functions inherited from Monitorable | |
| Monitorable () | |
| virtual Monitorable * | getClone () 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 > | |
| 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... | |
Static Protected Member Functions | |
| static IdxType | gtIdxOf (const ObjectSet< Sequence > &, const char *) |
Protected Attributes | |
| ObjectSet< Sequence > | seqs_ |
| ObjectSet< Sequence > | sysseqs_ |
| const bool | iscopy_ |
| DirtyCounter | lastsaveddirtycount_ |
Protected Attributes inherited from Monitorable | |
| Threads::Lock | accesslock_ |
Private Member Functions | |
| mODTextTranslationClass (ColTab::SequenceManager) | |
Friends | |
| class | Sequence |
| const SequenceManager & | SeqMGR () |
Additional Inherited Members | |
Protected Types inherited from Monitorable | |
| typedef Threads::Atomic< DirtyCountType > | DirtyCounter |
Manages Sequences; reads/writes system or user-defined.
This class is not fully MT-safe; it does not (safely) support concurrent editing from different threads. That out of the way, we can do without IDs. The name of a sequence is its key. Names are compared case-insensitive. The name of a sequence can change though, watch the Sequence's notifications.
The class has a singleton instance ColTab::SeqMGR().
|
protected |
|
protected |
| void ColTab::SequenceManager::add | ( | Sequence * | ) |
|
protected |
|
inlinestatic |
|
inlinestatic |
|
static |
|
protected |
| ConstRef ColTab::SequenceManager::getAny | ( | const char * | , |
| bool | seismics_if_default = true |
||
| ) | const |
guaranteed non-null
|
inline |
| ConstRef ColTab::SequenceManager::getByName | ( | const char * | ) | const |
can be null
|
inline |
| ConstRef ColTab::SequenceManager::getDefault | ( | bool | for_seismics = true | ) | const |
guaranteed non-null
guaranteed non-null
|
static |
0=red, 1=green, 2=blue 3=transp
| void ColTab::SequenceManager::getSequenceNames | ( | BufferStringSet & | ) | const |
| ConstRef ColTab::SequenceManager::getSystemSeq | ( | const char * | ) | const |
|
protected |
|
staticprotected |
|
protected |
|
protected |
| IdxType ColTab::SequenceManager::indexOf | ( | const char * | ) | const |
|
inline |
| bool ColTab::SequenceManager::isPresent | ( | const char * | ) | const |
|
inline |
| ColTab::SequenceManager::mDeclMonitorableAssignment | ( | SequenceManager | ) |
|
private |
| bool ColTab::SequenceManager::needsSave | ( | ) | const |
| void ColTab::SequenceManager::removeByName | ( | const char * | ) |
|
inline |
|
protected |
| void ColTab::SequenceManager::rollbackFromCopy | ( | const SequenceManager & | ) |
|
protected |
| size_type ColTab::SequenceManager::size | ( | ) | const |
|
static |
| Sequence::Status ColTab::SequenceManager::statusOf | ( | const Sequence & | ) | const |
| uiRetVal ColTab::SequenceManager::write | ( | bool | sys = false, |
| bool | applsetup = true |
||
| ) | const |
|
friend |
|
friend |
|
protected |
|
mutableprotected |
|
mutable |
provides name change notif for any of the seqs
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2017