16 #include "generalmod.h" 29 IOStream(
const char* nm=0,
const char*
id=0,
32 virtual bool isBad()
const;
34 virtual void copyFrom(
const IOObj*);
35 virtual const char* fullUserExpr(
bool forread=
true)
const;
37 virtual const char* connType()
const;
38 virtual Conn* getConn(
bool)
const;
40 virtual bool implExists(
bool forread)
const;
41 virtual bool implReadOnly()
const;
42 virtual bool implRemove()
const;
43 virtual bool implSetReadOnly(
bool)
const;
44 virtual bool implRename(
const char*,
const CallBack* cb=0);
50 int connIdxFor(
int nr)
const;
52 { curfidx_++;
return curfidx_ < nrFiles(); }
58 void setExt(
const char* ext ) { extension_ = ext; }
61 int nrFiles()
const {
return fs_.nrFiles();}
62 bool isMulti()
const {
return nrFiles()>1; }
75 bool implDoAll(
bool,
bool yn=
true)
const;
79 virtual void setDirName(
const char*);
80 virtual void setAbsDirectory(
const char*);
#define mExpClass(module)
Definition: commondefs.h:160
Provides I/O stream for file or system command.
Definition: strmprov.h:46
bool toNextConnIdx() const
Definition: iostrm.h:51
int curfidx_
Definition: iostrm.h:70
OpendTect standard ascii format file writing.
Definition: ascstream.h:32
bool isMulti() const
Definition: iostrm.h:62
bool isBad() const
Definition: strmprov.h:52
int nrFiles() const
Definition: iostrm.h:61
void setExt(const char *ext)
Definition: iostrm.h:58
int curConnIdx() const
Definition: iostrm.h:48
BufferString extension_
Definition: iostrm.h:71
OpendTect standard ascii format file reading.
Definition: ascstream.h:83
Data connection.
Definition: conn.h:30
bool isMultiConn() const
Definition: iostrm.h:47
Specification for one or more files.
Definition: filespec.h:28
FileSpec fs_
Definition: iostrm.h:69
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
virtual bool implManagesObjects() const
Definition: iostrm.h:45
const FileSpec & fileSpec() const
Definition: iostrm.h:57
FileSpec & fileSpec()
Definition: iostrm.h:56
void resetConnIdx() const
Definition: iostrm.h:49
CallBacks object-oriented (object + method).
Definition: callback.h:57
BufferString specfname_
Definition: iostrm.h:72
void setConnIdx(int idx) const
Definition: iostrm.h:53