 |
OpendTect
6.6
|
Go to the documentation of this file.
15 #include "generalmod.h"
29 class SurveyDataTreePreparer;
52 bool isBad()
const {
return state_ != Good; }
66 bool rmentry=
false,
uiRetVal* uirv=
nullptr);
75 bool onlyifsingle=
false)
const;
77 {
return getOfGroup(trgroupname,
true,
true); }
83 IOObj*
get(
const char* objname,
const char* tgname)
const;
87 bool isPresent(
const char*,
const char* tgname=0)
const;
94 const char*
rootDir()
const {
return rootdir_; }
95 bool isKey(
const char* keystr)
const;
96 const char*
nameOf(
const char* keystr)
const;
104 {
return to(0,force_reread); }
107 int translidxingroup=-1);
119 const char* desc=
"Custom data" )
132 {
return selkey_ == cdd.
selkey_; }
182 friend class IOMManager;
183 friend class SurveyDataTreePreparer;
195 { survchgblocked_ = yn; }
197 {
return survchgblocked_; }
234 bool needscleanup_ =
false;
IOObj * getIfOnlyOne(const char *trgroupname)
Definition: ioman.h:76
bool isBad() const
Definition: ioman.h:52
int levelOf(const char *dirnm) const
mODTextTranslationClass(IOMan)
static SurveyDiskLocation changedToSurvey()
IODir * getDir(IOObjContext::StdSelType) const
void reInit(bool dotrigger)
bool setDir(const char *)
State state_
Definition: ioman.h:159
static void surveyParsChanged()
IODir * dirptr_
Definition: ioman.h:160
IOObj * get(const IOObjContext &, const char *objnm) const
BufferString msg_
Definition: ioman.h:162
Notifier< IOMan > surveyChanged
To restore OD to normal state.
Definition: ioman.h:144
void trigger()
Definition: notify.h:132
CallBacker object with a name. Use if you want your object to be able to send and receive CallBack's,...
Definition: namedobj.h:72
T to(const F &fr)
Definition: convert.h:34
static void setTempSurvey(const SurveyDiskLocation &)
Notifier< IOMan > afterSurveyChange
When operating in normal state.
Definition: ioman.h:145
Notifier< IOMan > newIODir
Definition: ioman.h:139
bool setRootDir(const char *)
#define mGlobal(module)
Definition: commondefs.h:180
Definition: iosubdir.h:19
IOObj * getFirst(const IOObjContext &, int *nrpresent=0) const
if interested in nrpresent pass valid address
static bool isValidSurveyDir(const char *dirnm)
IOObj * getOfGroup(const char *tgname, bool first=true, bool onlyifsingle=false) const
bool commitChanges(const IOObj &)
static void setupCustomDataDirs(int)
bool changeSurveyBlocked() const
Definition: ioman.h:196
Holds an IOObjCtxt plus a pointer to an IOObj and/or an IOPar.
Definition: ctxtioobj.h:146
BufferString rootdir_
Definition: ioman.h:158
static bool isValidDataRoot(const char *dirnm)
#define mExpClass(module)
Definition: commondefs.h:177
void getEntry(CtxtIOObj &, bool newistmp=false, int translidxingroup=-1)
will create a new entry if necessary
int curlvl_
Definition: ioman.h:161
IOObj * get(const DBKey &) const
Next functions return a new (unmanaged) IOObj.
bool isUsable(const MultiID &) const
bool permRemove(const MultiID &)
Removes only entry in IODir.
Definition: uistringset.h:105
bool isReadOnly(const MultiID &) const
bool isManagedObject(const MultiID &) const
Definition: commandlineparser.h:53
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:81
void setChangeSurveyBlocked(bool yn)
Definition: ioman.h:194
static bool validSurveySetup(BufferString &errmsg)
void applClosing()
Definition: ioman.h:198
bool to(const MultiID &, bool force_reread=false)
MultiID selkey_
Definition: ioman.h:124
uiRetVal setDataSource(const IOPar &, bool refresh=false)
IOObj * get(const char *objname, const char *tgname) const
bool to(const IOSubDir *, bool)
const OD::String & message() const
Definition: ioman.h:54
Notifier< IOMan > applicationClosing
'Final' call ...
Definition: ioman.h:146
bool isPresent(const MultiID &) const
bool implExists(const MultiID &) const
void removeUnusable(DBKeySet &)
int curLevel() const
Definition: ioman.h:176
IODir * getDir(const MultiID &) const
CallBacks object-oriented (object + method).
Definition: callback.h:62
BufferString fullSurveyPath() const
const char * objectName(const DBKey &) const
bool isPresent(const char *, const char *tgname=0) const
static bool newSurvey(SurveyInfo *newsi=0)
Holds the context for selecting and/or creating IOObjs.
Definition: ctxtioobj.h:62
uiRetVal setDataSource(const CommandLineParser &, bool refresh=false)
bool doReloc(const MultiID &, Translator *, IOStream &, IOStream &, const CallBack *cb=nullptr)
static IOMan * theinst_
Definition: ioman.h:171
static const MultiID & addCustomDataDir(const CustomDirData &)
bool implReloc(const MultiID &, const char *newdir, const CallBack *cb=nullptr)
static IOSubDir * getIOSubDir(const CustomDirData &)
uiRetVal setDataSource(const char *dataroot, const char *survdir, bool refresh=false)
bool survchgblocked_
Definition: ioman.h:163
bool implRemove(const MultiID &, bool rmentry=false, uiRetVal *uirv=nullptr)
Compound key consisting of ints.
Definition: multiid.h:24
uiRetVal setDataSource(const char *fullpath, bool refresh=false)
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size.
Definition: bufstring.h:40
IOObj * crWriteIOObj(const CtxtIOObj &, const MultiID &, int) const
Notifier< IOMan > entryAdded
Definition: ioman.h:141
SurveyChanger(const SurveyDiskLocation &)
Notifier< IOMan > surveyToBeChanged
Before the change.
Definition: ioman.h:143
bool implRemove(const IOObj &) const
State
Definition: ioman.h:156
StdSelType
Definition: ctxtioobj.h:65
Notifier< IOMan > entryRemoved
CallBacker: CBCapsule<MultiID>
Definition: ioman.h:140
encapsulates the read-access-only part of strings in OD.
Definition: odstring.h:31
Notifier< IOMan > entryChanged
Definition: ioman.h:142
bool isKey(const char *keystr) const
const MultiID & key() const
of current IODir
bool implRename(const MultiID &, const char *newnm, const CallBack *cb=nullptr)
I/O Interpreter class for a certain object type.
Definition: transl.h:123
bool isUsable(const DBKey &) const
IOObj * get(const MultiID &) const
bool toRoot(bool force_reread=false)
Definition: ioman.h:103
const char * nameOf(const char *keystr) const
if keystr is not an IOObj key, will return keystr
MultiID createNewKey(const MultiID &dirkey)
BufferString desc_
Definition: ioman.h:128
static bool setSurvey(const char *)
const char * surveyName() const
static void cancelTempSurvey()
const char * setDBMDataSource(const char *fullpath, bool refresh=false)
manages the 'Meta-'data store for the IOObj's. This info is read from the .omf files.
IODir * getDir(const char *trlgrpnm) const
A lock of a type that (hopefully) suits your needs. To use it, you need the Locker class.
Definition: threadlock.h:53
CustomDirData(const char *selkey, const char *dirnm, const char *desc="Custom data")
Definition: ioman.h:118
const char * rootDir() const
Definition: ioman.h:94
Survey location on disk.
Definition: surveydisklocation.h:35
IOObj * getLocal(const char *objname, const char *tgname) const
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:55
const char * curDirName() const
OS dir name.
BufferString dirname_
The survey directory name.
Definition: surveydisklocation.h:76
Holds survey general information.
Definition: survinfo.h:45
IOObj * getFromPar(const IOPar &, const char *basekey, const IOObjContext &, bool mknew, BufferString &errmsg) const
Threads::Lock lock_
Definition: ioman.h:164
Generated at
for the OpendTect
seismic interpretation project.
Copyright (C): dGB Beheer B.V. 1995-2021