OpendTect
6.6
|
Survey location on disk. More...
Public Member Functions | |
SurveyDiskLocation () | |
current More... | |
SurveyDiskLocation (const char *dirnm, const char *bp=0) | |
SurveyDiskLocation (const FilePath &fulldir) | |
BufferString | basePath () const |
BufferString | dirName () const |
bool | exists () const |
void | fillPar (IOPar &, bool force=false) const |
BufferString | fullPath () const |
BufferString | fullPathFor (const char *fnm) const |
const Survey::GeometryManager & | geometryManager () const |
bool | isCurrentSurvey () const |
bool | isEmpty () const |
current survey, soft path More... | |
bool | operator!= (const SurveyDiskLocation &oth) const |
bool | operator== (const SurveyDiskLocation &) const |
void | set (const char *fullpath) |
void | set (const FilePath &) |
void | setBasePath (const char *bp) |
void | setDirName (const char *dn) |
void | setEmpty () |
current survey, soft path More... | |
void | setToCurrentSurvey (bool hard=true) |
const SurveyInfo & | surveyInfo () const |
BufferString | surveyName () const |
bool | usePar (const IOPar &) |
Static Public Member Functions | |
static const SurveyDiskLocation & | currentSurvey () |
static void | listSurveys (BufferStringSet &, const char *basepath=0) |
returns subdirectory names (not full paths) More... | |
Protected Attributes | |
BufferString | basepath_ |
The 'data root'. More... | |
BufferString | dirname_ |
The survey directory name. More... | |
Survey location on disk.
The survey itself is the only OpendTect database 'object' that has no ID by itself. Thus, if you have to work accross surveys, this object has to be the ID of a survey. To make things like 'relocate' easier, the path is split in a base path (usualy the 'Data Root') and the survey directory name. If any of the two is empty, it will be taken from surrent survey.
When working accross surveys, you can get the corresponding SurveyInfo and GeometryManager, cached for you.
<>
|
inline |
current
SurveyDiskLocation::SurveyDiskLocation | ( | const char * | dirnm, |
const char * | bp = 0 |
||
) |
SurveyDiskLocation::SurveyDiskLocation | ( | const FilePath & | fulldir | ) |
BufferString SurveyDiskLocation::basePath | ( | ) | const |
|
static |
BufferString SurveyDiskLocation::dirName | ( | ) | const |
bool SurveyDiskLocation::exists | ( | ) | const |
void SurveyDiskLocation::fillPar | ( | IOPar & | , |
bool | force = false |
||
) | const |
BufferString SurveyDiskLocation::fullPath | ( | ) | const |
BufferString SurveyDiskLocation::fullPathFor | ( | const char * | fnm | ) | const |
const Survey::GeometryManager& SurveyDiskLocation::geometryManager | ( | ) | const |
bool SurveyDiskLocation::isCurrentSurvey | ( | ) | const |
bool SurveyDiskLocation::isEmpty | ( | ) | const |
current survey, soft path
|
static |
returns subdirectory names (not full paths)
|
inline |
bool SurveyDiskLocation::operator== | ( | const SurveyDiskLocation & | ) | const |
void SurveyDiskLocation::set | ( | const char * | fullpath | ) |
void SurveyDiskLocation::set | ( | const FilePath & | ) |
|
inline |
|
inline |
void SurveyDiskLocation::setEmpty | ( | ) |
current survey, soft path
void SurveyDiskLocation::setToCurrentSurvey | ( | bool | hard = true | ) |
const SurveyInfo& SurveyDiskLocation::surveyInfo | ( | ) | const |
BufferString SurveyDiskLocation::surveyName | ( | ) | const |
bool SurveyDiskLocation::usePar | ( | const IOPar & | ) |
|
protected |
The 'data root'.
|
protected |
The survey directory name.
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022