![]() |
OpendTect-6_4
6.4
|
manages the 'Meta-'data store for the IOObj's. This info is read from the .omf files. More...
Classes | |
| class | CustomDirData |
Public Member Functions | |
| bool | isBad () const |
| bool | isReady () const |
| const OD::String & | message () const |
| IOObj * | get (const MultiID &) const |
| Next functions return a new (unmanaged) IOObj. More... | |
| IOObj * | getLocal (const char *objname, const char *tgname) const |
| IOObj * | getOfGroup (const char *tgname, bool first=true, bool onlyifsingle=false) const |
| IOObj * | getIfOnlyOne (const char *trgroupname) |
| IOObj * | getFirst (const IOObjContext &, int *nrpresent=0) const |
| if interested in nrpresent pass valid address More... | |
| IOObj * | getFromPar (const IOPar &, const char *basekey, const IOObjContext &, bool mknew, BufferString &errmsg) const |
| IOObj * | get (const char *objname, const char *tgname) const |
| bool | isPresent (const char *, const char *tgname=0) const |
| const MultiID & | key () const |
| of current IODir More... | |
| const char * | curDirName () const |
| OS dir name. More... | |
| const char * | rootDir () const |
| bool | isKey (const char *keystr) const |
| const char * | nameOf (const char *keystr) const |
| if keystr is not an IOObj key, will return keystr More... | |
| MultiID | createNewKey (const MultiID &dirkey) |
| bool | to (const MultiID &, bool force_reread=false) |
| bool | toRoot (bool force_reread=false) |
| void | getEntry (CtxtIOObj &, bool newistmp=false, int translidxingroup=-1) |
| will create a new entry if necessary More... | |
| bool | commitChanges (const IOObj &) |
| bool | permRemove (const MultiID &) |
| Removes only entry in IODir. More... | |
| const char * | surveyName () const |
| bool | setRootDir (const char *) |
| void | setChangeSurveyBlocked (bool yn) |
| bool | changeSurveyBlocked () const |
| void | applClosing () |
Public Member Functions inherited from NamedObject | |
| NamedObject (const char *nm=0) | |
| NamedObject (const NamedObject *linkedto) | |
| NamedObject (const NamedObject &) | |
| virtual | ~NamedObject () |
| void | setLinkedTo (NamedObject *) |
| bool | operator== (const NamedObject &oth) const |
| virtual const OD::String & | name () const |
| virtual const OD::String & | annotName () const |
| virtual void | setName (const char *) |
| void | setCleanName (const char *) |
| cleans string first More... | |
| void | deleteNotify (const CallBack &) |
Public Member Functions inherited from CallBacker | |
| CallBacker () | |
| CallBacker (const CallBacker &) | |
| virtual | ~CallBacker () |
| bool | attachCB (NotifierAccess &, const CallBack &, bool onlyifnew=false) |
| bool | attachCB (NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) |
| void | detachCB (NotifierAccess &, const CallBack &) |
| void | detachCB (NotifierAccess *notif, const CallBack &cb) |
| bool | isNotifierAttached (NotifierAccess *) const |
| Only for debugging purposes, don't use. More... | |
Static Public Member Functions | |
| static const MultiID & | addCustomDataDir (const CustomDirData &) |
| static bool | isValidDataRoot (const char *dirnm) |
| static bool | isValidSurveyDir (const char *dirnm) |
| static bool | validSurveySetup (BufferString &errmsg) |
| static IOSubDir * | getIOSubDir (const CustomDirData &) |
| static bool | newSurvey (SurveyInfo *newsi=0) |
| static bool | setSurvey (const char *) |
| static void | surveyParsChanged () |
Public Attributes | |
| Notifier< IOMan > | newIODir |
| Notifier< IOMan > | entryRemoved |
| CallBacker: CBCapsule<MultiID> More... | |
| Notifier< IOMan > | entryAdded |
| Notifier< IOMan > | surveyToBeChanged |
| Before the change. More... | |
| Notifier< IOMan > | surveyChanged |
| To restore OD to normal state. More... | |
| Notifier< IOMan > | afterSurveyChange |
| When operating in normal state. More... | |
| Notifier< IOMan > | applicationClosing |
| 'Final' call ... More... | |
Private Types | |
| enum | State { Bad, NeedInit, Good } |
Private Member Functions | |
| void | init () |
| void | reInit (bool dotrigger) |
| IOMan (const char *rd=0) | |
| ~IOMan () | |
| bool | setDir (const char *) |
| int | levelOf (const char *dirnm) const |
| int | curLevel () const |
| bool | to (const IOSubDir *, bool) |
| IOObj * | crWriteIOObj (const CtxtIOObj &, const MultiID &, int) const |
Static Private Member Functions | |
| static void | setupCustomDataDirs (int) |
Private Attributes | |
| BufferString | rootdir_ |
| State | state_ |
| IODir * | dirptr_ |
| int | curlvl_ |
| BufferString | msg_ |
| bool | survchgblocked_ |
| Threads::Lock | lock_ |
Static Private Attributes | |
| static IOMan * | theinst_ |
Friends | |
| class | SurveyDataTreePreparer |
| IOMan & | IOM () |
Additional Inherited Members | |
Protected Member Functions inherited from CallBacker | |
| void | detachAllNotifiers () |
| Call from the destructor of your inherited object. More... | |
Protected Attributes inherited from NamedObject | |
| BufferString * | name_ |
| NamedObject * | linkedto_ |
| CallBackSet * | delnotify_ |
manages the 'Meta-'data store for the IOObj's. This info is read from the .omf files.
There will be one IOMan available through the global function IOM(). Creating more instances is probably not a good idea.
|
private |
|
private |
|
private |
|
static |
Need to do this only once per OD run At survey change, dir will automatically be added
|
inline |
|
inline |
| bool IOMan::commitChanges | ( | const IOObj & | ) |
| const char* IOMan::curDirName | ( | ) | const |
OS dir name.
|
inlineprivate |
| IOObj* IOMan::get | ( | const char * | objname, |
| const char * | tgname | ||
| ) | const |
| void IOMan::getEntry | ( | CtxtIOObj & | , |
| bool | newistmp = false, |
||
| int | translidxingroup = -1 |
||
| ) |
will create a new entry if necessary
| IOObj* IOMan::getFirst | ( | const IOObjContext & | , |
| int * | nrpresent = 0 |
||
| ) | const |
if interested in nrpresent pass valid address
| IOObj* IOMan::getFromPar | ( | const IOPar & | , |
| const char * | basekey, | ||
| const IOObjContext & | , | ||
| bool | mknew, | ||
| BufferString & | errmsg | ||
| ) | const |
|
inline |
|
static |
| IOObj* IOMan::getLocal | ( | const char * | objname, |
| const char * | tgname | ||
| ) | const |
| IOObj* IOMan::getOfGroup | ( | const char * | tgname, |
| bool | first = true, |
||
| bool | onlyifsingle = false |
||
| ) | const |
|
private |
|
inline |
| bool IOMan::isKey | ( | const char * | keystr | ) | const |
| bool IOMan::isPresent | ( | const char * | , |
| const char * | tgname = 0 |
||
| ) | const |
Use before creating a named object
| tgname | example: EMHorizon3DTranslatorGroup::sGroupName().str() |
| bool IOMan::isReady | ( | ) | const |
|
static |
|
static |
|
private |
|
inline |
| const char* IOMan::nameOf | ( | const char * | keystr | ) | const |
if keystr is not an IOObj key, will return keystr
|
static |
set new SurveyInfo; force re-read the data tree.
|
private |
|
inline |
|
inline |
|
private |
| bool IOMan::setRootDir | ( | const char * | ) |
|
static |
will remove existing IO manager and set the survey to 'name', thus bypassing the .od/survey file
|
staticprivate |
| const char* IOMan::surveyName | ( | ) | const |
|
static |
| bool IOMan::to | ( | const MultiID & | , |
| bool | force_reread = false |
||
| ) |
|
private |
|
inline |
|
static |
|
friend |
|
friend |
|
private |
|
private |
CallBacker: CBCapsule<MultiID>
|
mutableprivate |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019