 |
OpendTect
6.6
|
Go to the documentation of this file.
51 const char*
fileName()
const {
return fname_.buf(); }
53 bool remove(
bool recursive=
true)
const;
89 static void unLoad(
const char*,
bool isid=
false);
115 bool inplaceedit=
false);
static void getPreLoadedIDs(BufferStringSet &)
void setFileName(const char *)
static StreamData createOStream(const char *, bool binary=true, bool inplaceedit=false)
Holds data to use and close an iostream. Usually created by StreamProvider.
Definition: strmdata.h:27
Set of BufferString objects.
Definition: bufstringset.h:26
static bool preLoad(const BufferStringSet &, TaskRunner &, const char *id)
id can be anything, usually MultiID though
void setCommand(const OS::MachineCommand &, const char *workdir)
StreamProvider(const char *filenm=nullptr)
static bool isPreLoaded(const char *, bool isid)
If isid, a single hit will return true.
#define mExpClass(module)
Definition: commondefs.h:177
void addPathIfNecessary(const char *)
adds given path if stored filename is relative
static StreamData createIStream(const char *, bool binary=true)
BufferString workingdir_
Definition: strmprov.h:97
static const char * sStdIO()
static void sendCBMsg(const CallBack *, const char *)
static void unLoad(const char *, bool isid=false)
If isid, unload all with this id.
CallBacks object-oriented (object + method).
Definition: callback.h:62
bool isFile() const
Definition: strmprov.h:71
StreamProvider & operator=(const StreamProvider &)=delete
Provides I/O stream for file or system command.
Definition: strmprov.h:39
Class that can execute a task.
Definition: task.h:170
bool rename(const char *, const CallBack *cb=0)
void set(const char *inp)
StreamData makeIStream(bool binary=true, bool allowpreloaded=true) const
see makeOStream remark
bool exists(bool forread) const
static const char * sStdErr()
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size.
Definition: bufstring.h:40
bool isCommand() const
Definition: strmprov.h:72
BufferString fname_
Definition: strmprov.h:95
StreamProvider(const StreamProvider &)=delete
Encapsulates an actual command to execute + the machine to run it on.
Definition: oscommand.h:94
bool setReadOnly(bool yn) const
static bool preLoad(const char *, TaskRunner &, const char *id)
id can be anything, usually MultiID though
StreamData makeOStream(bool binary=true, bool editmode=false) const
static void getPreLoadedFileNames(const char *id, BufferStringSet &)
pass null id for all files
StreamProvider(const OS::MachineCommand &, const char *workdir)
const char * fileName() const
Definition: strmprov.h:51
#define mDeprecatedDef
Definition: plfdefs.h:216
bool remove(bool recursive=true) const
static int getPreLoadedDataPackID(const char *)
static StreamData makePLIStream(int)
Generated at
for the OpendTect
seismic interpretation project.
Copyright (C): dGB Beheer B.V. 1995-2021