32 FileSpec(
const char* fnm=0);
33 FileSpec(
const IOPar&);
42 bool isMulti()
const {
return nrFiles() > 1; }
43 bool isRangeMulti()
const;
46 const char* fileName(
int nr=0)
const;
47 const char* absFileName(
int nr=0)
const;
48 const char* dirName()
const;
49 const char* fullDirName()
const;
51 const char* dispName()
const;
52 const char* usrStr()
const;
53 void setUsrStr(
const char* str ) { usrstr_ = str; }
58 { setEmpty();
if ( nm && *nm ) fnames_.
add(nm);}
59 void ensureBaseDir(
const char* dirnm);
60 void makeAbsoluteIfRelative(
const char* dirnm);
64 void getReport(
IOPar&)
const;
65 static const char* sKeyFileNrs();
67 void makePathsRelative(
const char* todir=0);
69 static void makePathsRelative(
IOPar&,
const char* todir=0);
72 void getMultiFromString(
const char*);
#define mExpClass(module)
Definition: commondefs.h:160
StepInterval< int > nrs_
Definition: filespec.h:36
#define mSetUdf(val)
Use this macro to set simple types to undefined.
Definition: undefval.h:274
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:188
bool isEmpty() const
Definition: odset.h:45
Set of BufferString objects.
Definition: bufstringset.h:28
void setEmpty()
Definition: filespec.h:55
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
bool isMulti() const
Definition: filespec.h:42
void setEmpty()
Definition: odset.h:46
BufferStringSet & add(const char *)
bool isEmpty() const
Definition: filespec.h:40
BufferStringSet fnames_
Definition: filespec.h:35
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:175
Specification for one or more files.
Definition: filespec.h:28
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
BufferString usrstr_
Definition: filespec.h:76
bool isEmpty() const
Definition: odstring.h:51
int zeropad_
left-pad the nrs_ to this length
Definition: filespec.h:37
void setFileName(const char *nm)
Definition: filespec.h:57
T start
Definition: ranges.h:92
BufferString & get(int idx)
Definition: bufstringset.h:36
void setUsrStr(const char *str)
Definition: filespec.h:53
BufferString survsubdir_
For example "Seismics".
Definition: filespec.h:38