OpendTect
7.0
|
Classes | |
class | CustomDirData |
Public Member Functions | |
uiRetVal | cancelTempSurvey_ () |
bool | changeSurveyBlocked () const |
bool | commitChanges (const IOObj &) |
MultiID | createNewKey (const MultiID &dirkey) |
const char * | curDirName () const |
OS dir name. More... | |
bool | ensureUniqueName (IOObj &) |
mDeprecatedObs BufferString | fullSurveyPath () const |
IOObj * | get (const char *objname, const char *tgname) const |
IOObj * | get (const DBKey &) const |
Next functions return a new (unmanaged) IOObj. More... | |
IOObj * | get (const IOObjContext &, const char *objnm) const |
IOObj * | get (const MultiID &) const |
IODir * | getDir (const char *trlgrpnm) const |
IODir * | getDir (const MultiID &) const |
IODir * | getDir (IOObjContext::StdSelType) const |
void | getEntry (CtxtIOObj &, bool newistmp=false, int translidxingroup=-1) |
will create a new entry if necessary More... | |
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 * | getIfOnlyOne (const char *trgroupname) |
IOObj * | getLocal (const char *objname, const char *tgname) const |
void | getNewEntry (CtxtIOObj &, bool newistmp=false, int translidxingroup=-1) |
will create a new entry if necessary More... | |
IOObj * | getOfGroup (const char *tgname, bool first=true, bool onlyifsingle=false) const |
bool | implExists (const MultiID &) const |
bool | implIsLink (const MultiID &) const |
bool | implReloc (const MultiID &, const char *newdir) |
bool | implRemove (const IOObj &, bool deep=true) const |
bool | implRemove (const MultiID &, bool rmentry=false, uiRetVal *uirv=nullptr) |
bool | implRename (const MultiID &, const char *newnm) |
CNotifier< IOMan, const MultiID & > & | implUpdated () |
bool | isBad () const |
bool | isKey (const char *keystr) const |
bool | isPresent (const char *, const char *tgname=0) const |
bool | isPresent (const MultiID &) const |
bool | isReadOnly (const MultiID &) const |
bool | isReady () const |
bool | isUsable (const DBKey &) const |
bool | isUsable (const MultiID &) const |
bool | isUsingTempSurvey () const |
const MultiID & | key () const |
of current IODir More... | |
const OD::String & | message () const |
const char * | nameOf (const char *keystr) const |
if keystr is not an IOObj key, will return keystr More... | |
const char * | nameOf (const MultiID &) const |
const char * | objectName (const DBKey &) const |
bool | permRemove (const MultiID &) |
Removes only entry in IODir. More... | |
Notifier< IOMan > & | prepareSurveyChange () |
Prepare, don't tear down. More... | |
bool | recordDataSource (const SurveyDiskLocation &, uiRetVal &) const |
void | removeUnusable (DBKeySet &) |
const char * | rootDir () const |
Full path to the root of the current project. More... | |
void | setChangeSurveyBlocked (bool yn) |
uiRetVal | setDataSource (const char *dataroot, const char *survdir, bool refresh=false) |
uiRetVal | setDataSource (const char *fullpath, bool refresh=false) |
uiRetVal | setDataSource (const CommandLineParser &, bool refresh=false) |
uiRetVal | setDataSource (const IOPar &, bool refresh=false) |
bool | setRootDir (const char *) |
uiRetVal | setTempSurvey_ (const SurveyDiskLocation &) |
const char * | surveyName () const |
bool | to (const MultiID &, bool force_reread=false) |
bool | to (IOObjContext::StdSelType, bool force_reread=false) |
bool | toRoot (bool force_reread=false) |
const uiString & | uiMessage () const |
Public Member Functions inherited from NamedCallBacker | |
NamedCallBacker (const char *nm=0) | |
NamedCallBacker (const NamedCallBacker &) | |
virtual Notifier< NamedCallBacker > & | objectToBeDeleted () const |
bool | operator== (const NamedCallBacker &oth) const |
bool | operator== (const NamedObject &oth) 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 | detachAllNotifiers () const |
Call from the destructor of your inherited object. More... | |
void | detachCB (const NotifierAccess &, const CallBack &) const |
void | detachCB (const NotifierAccess *notif, const CallBack &cb) const |
virtual bool | isCapsule () const |
bool | isNotifierAttached (const NotifierAccess *) const |
Only for debugging purposes, don't use. More... | |
void | stopReceivingNotifications () const |
virtual CallBacker * | trueCaller () |
Public Member Functions inherited from NamedObject | |
NamedObject (const char *nm=nullptr) | |
NamedObject (const NamedObject &oth) | |
virtual | ~NamedObject () |
virtual BufferString | getName () const |
bool | getNameFromPar (const IOPar &) |
const name_type & | name () const override |
NamedObject & | operator= (const NamedObject &) |
bool | operator== (const NamedObject &oth) const |
virtual void | setName (const char *nm) |
Public Member Functions inherited from ObjectWithName | |
virtual | ~ObjectWithName () |
bool | hasName (const char *nm) const |
bool | hasName (const name_type &nm) const |
void | putNameInPar (IOPar &) const |
Static Public Member Functions | |
static const MultiID & | addCustomDataDir (const CustomDirData &) |
static void | cancelTempSurvey () |
static IOSubDir * | getIOSubDir (const CustomDirData &) |
static BufferString | getNewTempDataRootDir () |
static void | getObjectNames (const DBKeySet &, BufferStringSet &) |
static Notifier< IOMan > & | iomReady () |
static bool | isOK () |
static bool | isPreparedForSurveyChange () |
static bool | isValidDataRoot (const char *dirnm) |
Full path to a writable directory. More... | |
static uiRetVal | isValidMsg () |
static bool | isValidSurveyDir (const char *dirnm) |
Full path to an OpendTect project directory. More... | |
static bool | newSurvey (SurveyInfo *newsi=0) |
static bool | prepareDataRoot (const char *dirnm) |
static bool | recordDataSource_ (const SurveyDiskLocation &, uiRetVal &) |
static uiRetVal | setDataSource_ (const char *dataroot, const char *survdir, bool refresh=false) |
static uiRetVal | setDataSource_ (const char *fullpath, bool refresh=false) |
static uiRetVal | setDataSource_ (const CommandLineParser &, bool refresh=false) |
static bool | setSurvey (const char *) |
static void | setTempSurvey (const SurveyDiskLocation &) |
static void | surveyParsChanged () |
static bool | validSurveySetup (BufferString &errmsg) |
Static Public Member Functions inherited from CallBacker | |
static void | createReceiverForCurrentThread () |
static void | removeReceiverForCurrentThread () |
Public Attributes | |
Notifier< IOMan > | afterSurveyChange |
When operating in normal state. More... | |
Notifier< IOMan > | applicationClosing |
'Final' call ... More... | |
CNotifier< IOMan, const MultiID & > | entryAdded |
CNotifier< IOMan, const MultiID & > | entryChanged |
CNotifier< IOMan, const MultiID & > | entryRemoved |
Notifier< IOMan > | newIODir |
Notifier< IOMan > | surveyChanged |
To restore OD to normal state. More... | |
Notifier< IOMan > | surveyToBeChanged |
Before the change, tear down. More... | |
Private Types | |
enum | State { Bad , NeedInit , Good } |
Private Member Functions | |
IOMan (const char *rd=0) | |
IOMan (const FilePath &rootdir) | |
~IOMan () | |
void | applClosing () |
bool | close (bool dotrigger) |
IOObj * | crWriteIOObj (const CtxtIOObj &, const MultiID &, int) const |
int | curLevel () const |
bool | doReloc (const MultiID &, Translator *, IOStream &, IOStream &) |
void | getObjEntry (CtxtIOObj &, bool isnew, bool newistmp=false, int translidxingroup=-1) |
mDeprecatedObs void | init () |
void | init (SurveyInfo *newsi) |
int | levelOf (const char *dirnm) const |
mDeprecatedObs void | reInit (bool dotrigger) |
void | reInit (SurveyInfo *newsi) |
bool | setDir (const char *) |
uiRetVal | setRootDir (const FilePath &, bool ischecked=false) |
fullPath to the survey directory More... | |
bool | to (const IOSubDir *, bool) |
bool | writeSettingsSurveyFile (const char *dirnm, uiRetVal &) const |
Static Private Member Functions | |
static void | setupCustomDataDirs (int) |
static bool | writeSettingsSurveyFile_ (const char *dirnm, uiRetVal &) |
Private Attributes | |
int | curlvl_ |
IODir * | dirptr_ = nullptr |
Threads::Lock | lock_ |
uiString | msg_ |
BufferString | rootdir_ |
State | state_ = NeedInit |
bool | survchgblocked_ = false |
Static Private Attributes | |
static IOMan * | theinst_ |
Friends | |
class | BatchProgram |
IOMan & | IOM () |
class | IOMManager |
class | ServiceMgrBase |
class | SurveyDataTreePreparer |
class | uiMain |
Additional Inherited Members | |
Public Types inherited from ObjectWithName | |
typedef OD::String | name_type |
Protected Member Functions inherited from NamedCallBacker | |
void | sendDelNotif () const |
Protected Attributes inherited from NamedCallBacker | |
Threads::Atomic< bool > | delalreadytriggered_ |
Notifier< NamedCallBacker > | delnotif_ |
Protected Attributes inherited from NamedObject | |
BufferString | name_ |
<>
|
private |
|
private |
|
private |
|
private |
|
static |
Need to do this only once per OD run At survey change, dir will automatically be added
|
inlineprivate |
|
static |
uiRetVal IOMan::cancelTempSurvey_ | ( | ) |
|
inline |
|
private |
bool IOMan::commitChanges | ( | const IOObj & | ) |
const char* IOMan::curDirName | ( | ) | const |
OS dir name.
|
inlineprivate |
|
private |
bool IOMan::ensureUniqueName | ( | IOObj & | ) |
mDeprecatedObs BufferString IOMan::fullSurveyPath | ( | ) | const |
IOObj* IOMan::get | ( | const char * | objname, |
const char * | tgname | ||
) | const |
IOObj* IOMan::get | ( | const IOObjContext & | , |
const char * | objnm | ||
) | const |
IODir* IOMan::getDir | ( | const char * | trlgrpnm | ) | const |
IODir* IOMan::getDir | ( | IOObjContext::StdSelType | ) | 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 |
void IOMan::getNewEntry | ( | CtxtIOObj & | , |
bool | newistmp = false , |
||
int | translidxingroup = -1 |
||
) |
will create a new entry if necessary
|
static |
|
static |
|
private |
IOObj* IOMan::getOfGroup | ( | const char * | tgname, |
bool | first = true , |
||
bool | onlyifsingle = false |
||
) | const |
bool IOMan::implExists | ( | const MultiID & | ) | const |
bool IOMan::implIsLink | ( | const MultiID & | ) | const |
bool IOMan::implReloc | ( | const MultiID & | , |
const char * | newdir | ||
) |
bool IOMan::implRemove | ( | const IOObj & | , |
bool | deep = true |
||
) | const |
bool IOMan::implRename | ( | const MultiID & | , |
const char * | newnm | ||
) |
|
private |
|
private |
|
inline |
bool IOMan::isKey | ( | const char * | keystr | ) | const |
|
static |
|
static |
bool IOMan::isPresent | ( | const char * | , |
const char * | tgname = 0 |
||
) | const |
Use before creating a named object
tgname | example: EMHorizon3DTranslatorGroup::sGroupName().str() |
bool IOMan::isPresent | ( | const MultiID & | ) | const |
bool IOMan::isReadOnly | ( | const MultiID & | ) | const |
bool IOMan::isReady | ( | ) | const |
bool IOMan::isUsable | ( | const DBKey & | ) | const |
bool IOMan::isUsable | ( | const MultiID & | ) | const |
bool IOMan::isUsingTempSurvey | ( | ) | const |
|
static |
Full path to a writable directory.
|
static |
|
static |
Full path to an OpendTect project directory.
|
private |
|
inline |
const char* IOMan::nameOf | ( | const char * | keystr | ) | const |
if keystr is not an IOObj key, will return keystr
const char* IOMan::nameOf | ( | const MultiID & | ) | const |
|
static |
set new SurveyInfo; force re-read the data tree. newsi becomes mine
const char* IOMan::objectName | ( | const DBKey & | ) | const |
|
static |
bool IOMan::recordDataSource | ( | const SurveyDiskLocation & | , |
uiRetVal & | |||
) | const |
|
static |
records dataroot in settings, and project in survey file
|
private |
|
private |
void IOMan::removeUnusable | ( | DBKeySet & | ) |
|
inline |
Full path to the root of the current project.
|
inline |
uiRetVal IOMan::setDataSource | ( | const char * | dataroot, |
const char * | survdir, | ||
bool | refresh = false |
||
) |
uiRetVal IOMan::setDataSource | ( | const char * | fullpath, |
bool | refresh = false |
||
) |
uiRetVal IOMan::setDataSource | ( | const CommandLineParser & | , |
bool | refresh = false |
||
) |
|
static |
Triggers the post-survey change notifiers
|
static |
|
static |
|
private |
bool IOMan::setRootDir | ( | const char * | ) |
fullPath to the survey directory pass nullptr to use GetDataDir
fullPath to the survey directory
|
static |
will remove existing IO manager and set the survey to 'name', thus bypassing the .od/survey file
|
static |
uiRetVal IOMan::setTempSurvey_ | ( | const SurveyDiskLocation & | ) |
|
staticprivate |
const char* IOMan::surveyName | ( | ) | const |
|
static |
|
private |
bool IOMan::to | ( | const MultiID & | , |
bool | force_reread = false |
||
) |
bool IOMan::to | ( | IOObjContext::StdSelType | , |
bool | force_reread = false |
||
) |
|
inline |
|
inline |
|
static |
|
private |
|
staticprivate |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
private |
|
private |
|
mutableprivate |
|
private |
|
private |
|
private |
|
staticprivate |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024