16 #include "generalmod.h" 35 virtual bool canMake(
const char*)
const = 0;
37 bool fill_defs)
const = 0;
67 virtual bool isBad()
const = 0;
68 virtual void copyFrom(
const IOObj*) = 0;
72 virtual const char*
connType()
const = 0;
73 virtual Conn* getConn(
bool forread)
const = 0;
79 virtual const char* fullUserExpr(
bool forread=
true)
const = 0;
82 virtual bool implExists(
bool forread)
const = 0;
90 virtual const char*
dirName()
const {
return dirnm_; }
95 void updateCreationPars()
const;
97 static bool isKey(
const char*);
100 static bool isSurveyDefault(
const MultiID&);
102 void setSurveyDefault(
const char* subsel = 0)
const;
110 void acquireNewKeyIn(
const MultiID&);
113 static int tmpID() {
return 999999; }
114 inline bool isTmp()
const {
return key_.leafID()>=tmpID();}
115 bool isProcTmp()
const;
117 bool isInCurrentSurvey()
const;
126 IOObj(
const char* nm=0,
const char* ky=0);
130 virtual bool getFrom(ascistream&) = 0;
138 static IOObj* produce(
const char*,
const char* nm=0,
const char* ky=0,
139 bool initdefaults=
true);
140 void copyStuffFrom(
const IOObj&);
146 void setKey(
const char* nm ) { key_ = nm; }
#define mExpClass(module)
Definition: commondefs.h:160
BufferString dirnm_
Definition: ioobj.h:121
BufferString group_
Definition: ioobj.h:124
virtual bool isUserSelectable(bool forread=true) const
Definition: transl.h:150
virtual const char * connType() const
virtual BufferString mainFileName() const
Definition: ioobj.h:80
Export_Basic uiString toUiString(ViewStyle)
#define mGlobal(module)
Definition: commondefs.h:163
virtual bool implExists(const IOObj *, bool forread) const
OpendTect standard ascii format file writing.
Definition: ascstream.h:32
BufferString transl_
Definition: ioobj.h:123
Definition: uistring.h:89
virtual const OD::String & group() const
Definition: ioobj.h:77
virtual void setDirName(const char *s)
Definition: ioobj.h:147
virtual IOPar & pars() const
Definition: ioobj.h:92
void setKey(const char *nm)
Definition: ioobj.h:146
virtual bool implSetReadOnly(bool) const
Definition: ioobj.h:88
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
bool equalIOObj(const MultiID &, const MultiID &)
encapsulates the read-access-only part of strings in OD.
Definition: odstring.h:31
TranslatorGroup * group_
Definition: transl.h:162
virtual bool implRename(const char *, const CallBack *cb=0)
Definition: ioobj.h:86
uiString uiName() const
Definition: ioobj.h:61
IOPar & pars_
Definition: ioobj.h:142
virtual ~IOObjProducer()
Definition: ioobj.h:34
OpendTect standard ascii format file reading.
Definition: ascstream.h:83
virtual bool implRemove() const
Definition: ioobj.h:84
bool fullImplRemove(const IOObj &)
I/O Interpreter class for a certain object type.
Definition: transl.h:123
virtual bool implManagesObjects() const
Definition: ioobj.h:85
Data connection.
Definition: conn.h:30
virtual void setTranslator(const char *s)
Definition: ioobj.h:76
bool isTmp() const
Definition: ioobj.h:114
virtual bool hasConnType(const char *s) const
Definition: ioobj.h:69
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
virtual bool isSubdir() const
Definition: ioobj.h:148
MultiID key_
Definition: ioobj.h:122
Object with a name.
Definition: namedobj.h:35
virtual const char * dirName() const
The directory ame within the tree.
Definition: ioobj.h:90
virtual const MultiID & key() const
Definition: ioobj.h:64
virtual void setGroup(const char *s)
Definition: ioobj.h:78
bool areEqual(const IOObj *, const IOObj *)
CallBacks object-oriented (object + method).
Definition: callback.h:57
virtual bool implReadOnly() const
Definition: ioobj.h:83
static int tmpID()
Definition: ioobj.h:113
Compound key consisting of ints.
Definition: multiid.h:25
virtual const OD::String & translator() const
Definition: ioobj.h:75