OpendTect  6.6
Classes | Enumerations | Functions
Repos Namespace Reference

Classes

class  FileProvider
 
class  IOPar
 IOPar with its Repos Source. More...
 
class  IOParSet
 Set of Repos::IOPar with each a unique name for user recognistion. More...
 

Enumerations

enum  Source {
  Temp , Rel , ApplSetup , Data ,
  Survey , User
}
 

Functions

uiString descriptionOf (Source)
 
bool isUserDefined (Source)
 Constructs repository file names. More...
 

Enumeration Type Documentation

◆ Source

Enumerator
Temp 
Rel 
ApplSetup 
Data 
Survey 
User 

Function Documentation

◆ descriptionOf()

uiString Repos::descriptionOf ( Source  )

◆ isUserDefined()

bool Repos::isUserDefined ( Source  )

Constructs repository file names.

The basename is the name of a file in upper and lower case, e.g. UnitsOfMeasure.

Then the files to find are: Temp: temp stor dir (/tmp on unix), file "UnitsOfMeasure" Rel: Software (release) dir, data subdir, file "UnitsOfMeasure" ApplSetup: Application setup dir, data subdir, file "UnitsOfMeasure" Data: survey data root, file ".unitsofmeasure" Survey: survey directory, file ".unitsofmeasure" User: home/user dir, .od subdir, file "unitsofmeasure"

The 'Temp' will not be visited by the 'next' iterator, it's more or less added for as an undef or initial value. When specifying reverse, the iterator will start at User.

Usage example:

Repos::FileProvider rfp( "UnitsOfMeasure" ) while ( rfp.next() ) addUnitsFromFile( rfp.fileName(), rfp.source() );


Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022