16 #include "generalmod.h" 26 class SurveyDataTreePreparer;
40 bool isBad()
const {
return state_ != Good; }
46 IOObj* getLocal(
const char* objname,
const char* tgname)
const;
47 IOObj* getOfGroup(
const char* tgname,
bool first=
true,
48 bool onlyifsingle=
false)
const;
50 {
return getOfGroup(trgroupname,
true,
true); }
56 IOObj*
get(
const char* objname,
const char* tgname)
const;
58 bool isPresent(
const char*,
const char* tgname=0)
const;
64 const char* curDirName()
const;
65 const char*
rootDir()
const {
return rootdir_; }
66 bool isKey(
const char* keystr)
const;
67 const char*
nameOf(
const char* keystr)
const;
72 bool to(
const MultiID&,
bool force_reread=
false);
74 {
return to(0,force_reread); }
76 void getEntry(
CtxtIOObj&,
bool newistmp=
false,
77 int translidxingroup=-1);
79 bool commitChanges(
const IOObj&);
80 bool permRemove(
const MultiID&);
83 const char* surveyName()
const;
89 const char* desc=
"Custom data" )
102 {
return selkey_ == cdd.
selkey_; }
117 static bool isValidDataRoot(
const char* dirnm);
118 static bool isValidSurveyDir(
const char* dirnm);
133 void reInit(
bool dotrigger);
134 IOMan(
const char* rd=0);
138 static void setupCustomDataDirs(
int);
140 bool setDir(
const char*);
141 int levelOf(
const char* dirnm)
const;
146 friend class SurveyDataTreePreparer;
153 bool setRootDir(const
char*);
157 void setChangeSurveyBlocked(
bool yn )
158 { survchgblocked_ = yn; }
160 {
return survchgblocked_; }
164 static bool setSurvey(
const char*);
168 static void surveyParsChanged();
#define mExpClass(module)
Definition: commondefs.h:160
IODir * dirptr_
Definition: ioman.h:126
BufferString msg_
Definition: ioman.h:128
const OD::String & message() const
Definition: ioman.h:42
IOObj * getIfOnlyOne(const char *trgroupname)
Definition: ioman.h:49
A lock of a type that (hopefully) suits your needs. To use it, you need the Locker class...
Definition: threadlock.h:53
T to(const F &fr)
Definition: convert.h:33
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:53
State state_
Definition: ioman.h:125
Notifier< IOMan > surveyChanged
To restore OD to normal state.
Definition: ioman.h:113
MultiID selkey_
Definition: ioman.h:94
#define mGlobal(module)
Definition: commondefs.h:163
Notifier< IOMan > afterSurveyChange
When operating in normal state.
Definition: ioman.h:114
manages the 'Meta-'data store for the IOObj's. This info is read from the .omf files.
Definition: ioman.h:36
bool isBad() const
Definition: ioman.h:40
BufferString desc_
Definition: ioman.h:98
int curlvl_
Definition: ioman.h:127
Holds survey general information.
Definition: survinfo.h:45
Holds an IOObjCtxt plus a pointer to an IOObj and/or an IOPar.
Definition: ctxtioobj.h:142
BufferString rootdir_
Definition: ioman.h:124
const char * rootDir() const
Definition: ioman.h:65
void applClosing()
Definition: ioman.h:161
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
bool changeSurveyBlocked() const
Definition: ioman.h:159
encapsulates the read-access-only part of strings in OD.
Definition: odstring.h:31
static IOMan * theinst_
Definition: ioman.h:137
void trigger(T &t)
Definition: callback.h:258
State
Definition: ioman.h:122
bool survchgblocked_
Definition: ioman.h:129
CustomDirData(const char *selkey, const char *dirnm, const char *desc="Custom data")
Definition: ioman.h:88
Notifier< IOMan > applicationClosing
'Final' call ...
Definition: ioman.h:115
Definition: iosubdir.h:18
Notifier< IOMan > surveyToBeChanged
Before the change.
Definition: ioman.h:112
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Object with a name.
Definition: namedobj.h:35
Notifier< IOMan > entryRemoved
CallBacker: CBCapsule<MultiID>
Definition: ioman.h:110
bool toRoot(bool force_reread=false)
Definition: ioman.h:73
Threads::Lock lock_
Definition: ioman.h:130
Notifier< IOMan > entryAdded
Definition: ioman.h:111
const char * nameOf(ButtonState)
Notifier< IOMan > newIODir
Definition: ioman.h:109
int curLevel() const
Definition: ioman.h:142
bool getFromPar(const IOPar &, GeomType &)
Compound key consisting of ints.
Definition: multiid.h:25
Holds the context for selecting and/or creating IOObjs.
Definition: ctxtioobj.h:62