OpendTect
6.6
|
Classes | |
class | CustomDirData |
Public Member Functions | |
void | applClosing () |
bool | changeSurveyBlocked () const |
bool | commitChanges (const IOObj &) |
MultiID | createNewKey (const MultiID &dirkey) |
const char * | curDirName () const |
OS dir name. More... | |
bool | ensureUniqueName (IOObj &) |
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 | implReloc (const MultiID &, const char *newdir, const CallBack *cb=nullptr) |
bool | implRemove (const IOObj &) const |
bool | implRemove (const MultiID &, bool rmentry=false, uiRetVal *uirv=nullptr) |
bool | implRename (const MultiID &, const char *newnm, const CallBack *cb=nullptr) |
bool | isBad () const |
bool | isKey (const char *keystr) const |
bool | isManagedObject (const MultiID &) 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 |
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 * | objectName (const DBKey &) const |
bool | permRemove (const MultiID &) |
Removes only entry in IODir. More... | |
bool | recordDataSource (const SurveyDiskLocation &, uiRetVal &) const |
void | removeUnusable (DBKeySet &) |
const char * | rootDir () const |
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 *) |
const char * | surveyName () const |
bool | to (const MultiID &, bool force_reread=false) |
bool | toRoot (bool force_reread=false) |
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 |
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 &) |
virtual const name_type & | name () const |
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 bool | isValidDataRoot (const char *dirnm) |
static bool | isValidSurveyDir (const char *dirnm) |
static bool | newSurvey (SurveyInfo *newsi=0) |
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... | |
Notifier< IOMan > | entryAdded |
Notifier< IOMan > | entryChanged |
Notifier< IOMan > | entryRemoved |
CallBacker: CBCapsule<MultiID> More... | |
Notifier< IOMan > | newIODir |
Notifier< IOMan > | surveyChanged |
To restore OD to normal state. More... | |
Notifier< IOMan > | surveyToBeChanged |
Before the change. More... | |
Private Types | |
enum | State { Bad , NeedInit , Good } |
Private Member Functions | |
IOMan (const char *rd=0) | |
~IOMan () | |
IOObj * | crWriteIOObj (const CtxtIOObj &, const MultiID &, int) const |
int | curLevel () const |
bool | doReloc (const MultiID &, Translator *, IOStream &, IOStream &, const CallBack *cb=nullptr) |
void | getObjEntry (CtxtIOObj &, bool isnew, bool newistmp=false, int translidxingroup=-1) |
int | getSuffixForName (const BufferString &orgnm, const BufferString &trgrpnm, int idx=0) |
void | init () |
int | levelOf (const char *dirnm) const |
void | reInit (bool dotrigger) |
bool | setDir (const char *) |
bool | to (const IOSubDir *, bool) |
bool | writeSettingsSurveyFile (const char *dirnm, uiRetVal &) const |
Static Private Member Functions | |
static void | setupCustomDataDirs (int) |
Private Attributes | |
int | curlvl_ |
IODir * | dirptr_ |
Threads::Lock | lock_ |
BufferString | msg_ |
BufferString | rootdir_ |
State | state_ |
bool | survchgblocked_ |
Static Private Attributes | |
static IOMan * | theinst_ |
Friends | |
IOMan & | IOM () |
class | IOMManager |
class | SurveyDataTreePreparer |
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 |
|
static |
Need to do this only once per OD run At survey change, dir will automatically be added
|
inline |
|
static |
|
inline |
bool IOMan::commitChanges | ( | const IOObj & | ) |
const char* IOMan::curDirName | ( | ) | const |
OS dir name.
|
inlineprivate |
|
private |
bool IOMan::ensureUniqueName | ( | IOObj & | ) |
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
|
private |
IOObj* IOMan::getOfGroup | ( | const char * | tgname, |
bool | first = true , |
||
bool | onlyifsingle = false |
||
) | const |
|
private |
bool IOMan::implExists | ( | const MultiID & | ) | const |
bool IOMan::implRemove | ( | const IOObj & | ) | const |
|
private |
|
inline |
bool IOMan::isKey | ( | const char * | keystr | ) | const |
bool IOMan::isManagedObject | ( | const MultiID & | ) | const |
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 |
|
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.
const char* IOMan::objectName | ( | const DBKey & | ) | const |
bool IOMan::recordDataSource | ( | const SurveyDiskLocation & | , |
uiRetVal & | |||
) | const |
records dataroot in settings, and project in survey file
|
private |
void IOMan::removeUnusable | ( | DBKeySet & | ) |
|
inline |
|
inline |
uiRetVal IOMan::setDataSource | ( | const char * | dataroot, |
const char * | survdir, | ||
bool | refresh = false |
||
) |
Triggers the post-survey change notifiers
uiRetVal IOMan::setDataSource | ( | const char * | fullpath, |
bool | refresh = false |
||
) |
uiRetVal IOMan::setDataSource | ( | const CommandLineParser & | , |
bool | refresh = false |
||
) |
|
private |
bool IOMan::setRootDir | ( | const char * | ) |
|
static |
will remove existing IO manager and set the survey to 'name', thus bypassing the .od/survey file
|
static |
|
staticprivate |
const char* IOMan::surveyName | ( | ) | const |
|
static |
|
private |
bool IOMan::to | ( | const MultiID & | , |
bool | force_reread = false |
||
) |
|
inline |
|
static |
|
private |
|
friend |
|
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. 1995-2022