OpendTect
7.0
|
Specification for one or more files. More...
Public Member Functions | |
FileSpec (const char *fnm=0) | |
FileSpec (const IOPar &) | |
virtual | ~FileSpec () |
const char * | absFileName (int nr=0) const |
adds path if necessary More... | |
const char * | dirName () const |
only the dir name More... | |
const char * | dispName () const |
for titles etc More... | |
void | ensureBaseDir (const char *dirnm) |
const char * | fileName (int nr=0) const |
void | fillPar (IOPar &) const |
const char * | fullDirName () const |
full name of dir More... | |
void | getMultiFromString (const char *) |
void | getReport (IOPar &) const |
bool | isEmpty () const |
bool | isMulti () const |
bool | isRangeMulti () const |
void | makeAbsoluteIfRelative (const char *dirnm) |
void | makePathsRelative (const char *todir=0) |
int | nrFiles () const |
void | setEmpty () |
void | setFileName (const char *nm) |
void | setUsrStr (const char *str) |
bool | usePar (const IOPar &) |
const char * | usrStr () const |
a user-typed filename More... | |
Static Public Member Functions | |
static void | makePathsRelative (IOPar &, const char *todir=0) |
static const char * | sKeyFileNrs () |
Public Attributes | |
BufferStringSet | fnames_ |
StepInterval< int > | nrs_ |
BufferString | survsubdir_ |
For example "Seismics". More... | |
int | zeropad_ |
left-pad the nrs_ to this length More... | |
Protected Attributes | |
BufferString | usrstr_ |
Specification for one or more files.
If the paths are not absolute, they will be considered relative to the current survey directory. If you work with relative pathnames, you can specify a subdir-from-survey-dir.
<>
FileSpec::FileSpec | ( | const char * | fnm = 0 | ) |
FileSpec::FileSpec | ( | const IOPar & | ) |
|
virtual |
Reimplemented in SEGY::FileSpec.
const char* FileSpec::absFileName | ( | int | nr = 0 | ) | const |
adds path if necessary
const char* FileSpec::dirName | ( | ) | const |
only the dir name
const char* FileSpec::dispName | ( | ) | const |
for titles etc
void FileSpec::ensureBaseDir | ( | const char * | dirnm | ) |
const char* FileSpec::fileName | ( | int | nr = 0 | ) | const |
void FileSpec::fillPar | ( | IOPar & | ) | const |
const char* FileSpec::fullDirName | ( | ) | const |
full name of dir
void FileSpec::getMultiFromString | ( | const char * | ) |
void FileSpec::getReport | ( | IOPar & | ) | const |
|
inline |
|
inline |
bool FileSpec::isRangeMulti | ( | ) | const |
void FileSpec::makeAbsoluteIfRelative | ( | const char * | dirnm | ) |
void FileSpec::makePathsRelative | ( | const char * | todir = 0 | ) |
|
static |
int FileSpec::nrFiles | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
static |
bool FileSpec::usePar | ( | const IOPar & | ) |
const char* FileSpec::usrStr | ( | ) | const |
a user-typed filename
BufferStringSet FileSpec::fnames_ |
StepInterval<int> FileSpec::nrs_ |
BufferString FileSpec::survsubdir_ |
For example "Seismics".
|
protected |
int FileSpec::zeropad_ |
left-pad the nrs_ to this length
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024