OpendTect  6.6
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
IOObjContext Class Reference

Holds the context for selecting and/or creating IOObjs. More...

Inheritance diagram for IOObjContext:
[legend]

Classes

struct  StdDirData
 

Public Types

enum  StdSelType {
  Seis =0 , Surf , Loc , Feat ,
  WllInf , NLA , Misc , Attr ,
  Mdl , Geom , None
}
 
- Public Types inherited from ObjectWithName
typedef OD::String name_type
 

Public Member Functions

 IOObjContext (const IOObjContext &)
 
 IOObjContext (const TranslatorGroup *, const char *prefname=0)
 
IOStreamcrDefaultWriteObj (const Translator &, const MultiID &) const
 
void fillTrGroup () const
 
void fixTranslator (const char *trusrnm)
 
MultiID getSelKey () const
 
bool hasStdSelKey () const
 
bool haveMatches () const
 
int nrMatches () const
 
const char * objectTypeName () const
 
IOObjContextoperator= (const IOObjContext &)
 
bool validIOObj (const IOObj &) const
 
- Public Member Functions inherited from NamedObject
 NamedObject (const char *nm=nullptr)
 
 NamedObject (const NamedObject &oth)
 
virtual ~NamedObject ()
 
virtual BufferString getName () const
 
bool getNameFromPar (const IOPar &)
 
virtual const name_typename () const
 
NamedObjectoperator= (const NamedObject &)
 
bool operator== (const NamedObject &oth) const
 
virtual void setName (const char *nm)
 
- Public Member Functions inherited from ObjectWithName
virtual ~ObjectWithName ()
 
bool hasName (const char *nm) const
 
bool hasName (const name_type &nm) const
 
void putNameInPar (IOPar &) const
 

Static Public Member Functions

static BufferString getDataDirName (StdSelType)
 
static BufferString getDataDirName (StdSelType, bool dironly)
 Including legacy names - smart. More...
 
static const StdDirDatagetStdDirData (StdSelType)
 
static int totalNrStdDirs ()
 

Public Attributes

BufferStringdeftransl
 
BufferString deftransl_
 Translator to use for new entry. More...
 
bool & forread
 
bool forread_
 this selection only More...
 
bool & maydooper
 
bool maydooper_
 Will we allow add/remove etc? More...
 
bool & multi
 
bool multi_
 If true, multi allowed. More...
 
int & newonlevel
 
int newonlevel_
 level 0 is survey dir More...
 
MultiIDselkey
 
MultiID selkey_
 If set, overrules the 'standard'. More...
 
StdSelTypestdseltype
 
StdSelType stdseltype_
 intrinsics More...
 
IOObjSelConstraintstoselect
 
IOObjSelConstraints toselect_
 
const TranslatorGroup *& trgroup
 
const TranslatorGrouptrgroup_
 Mandatory, must never be 0. More...
 

Additional Inherited Members

- Protected Attributes inherited from NamedObject
BufferString name_
 

Detailed Description

Holds the context for selecting and/or creating IOObjs.

Usually, this object is obtained by calling the ioContext() method of a certain TranslatorGroup.

Note, that if the StdSelType is set to None, you must provide the selkey or we'll be blobbing stuff in the root of the survey.

<>

Member Enumeration Documentation

◆ StdSelType

Enumerator
Seis 
Surf 
Loc 
Feat 
WllInf 
NLA 
Misc 
Attr 
Mdl 
Geom 
None 

Constructor & Destructor Documentation

◆ IOObjContext() [1/2]

IOObjContext::IOObjContext ( const TranslatorGroup ,
const char *  prefname = 0 
)

◆ IOObjContext() [2/2]

IOObjContext::IOObjContext ( const IOObjContext )

Member Function Documentation

◆ crDefaultWriteObj()

IOStream* IOObjContext::crDefaultWriteObj ( const Translator ,
const MultiID  
) const

◆ fillTrGroup()

void IOObjContext::fillTrGroup ( ) const

Uses stdseltype_ to make a trgroup_ Should never be necessary

◆ fixTranslator()

void IOObjContext::fixTranslator ( const char *  trusrnm)
inline

◆ getDataDirName() [1/2]

static BufferString IOObjContext::getDataDirName ( StdSelType  )
static

◆ getDataDirName() [2/2]

static BufferString IOObjContext::getDataDirName ( StdSelType  ,
bool  dironly 
)
static

Including legacy names - smart.

◆ getSelKey()

MultiID IOObjContext::getSelKey ( ) const

◆ getStdDirData()

static const StdDirData* IOObjContext::getStdDirData ( StdSelType  )
static

◆ hasStdSelKey()

bool IOObjContext::hasStdSelKey ( ) const
inline

◆ haveMatches()

bool IOObjContext::haveMatches ( ) const
inline

◆ nrMatches()

int IOObjContext::nrMatches ( ) const

◆ objectTypeName()

const char* IOObjContext::objectTypeName ( ) const

◆ operator=()

IOObjContext& IOObjContext::operator= ( const IOObjContext )

◆ totalNrStdDirs()

static int IOObjContext::totalNrStdDirs ( )
static

◆ validIOObj()

bool IOObjContext::validIOObj ( const IOObj ) const

Member Data Documentation

◆ deftransl

BufferString& IOObjContext::deftransl

◆ deftransl_

BufferString IOObjContext::deftransl_

Translator to use for new entry.

◆ forread

bool& IOObjContext::forread

◆ forread_

bool IOObjContext::forread_

this selection only

◆ maydooper

bool& IOObjContext::maydooper

◆ maydooper_

bool IOObjContext::maydooper_

Will we allow add/remove etc?

◆ multi

bool& IOObjContext::multi

◆ multi_

bool IOObjContext::multi_

If true, multi allowed.

◆ newonlevel

int& IOObjContext::newonlevel

◆ newonlevel_

int IOObjContext::newonlevel_

level 0 is survey dir

◆ selkey

MultiID& IOObjContext::selkey

◆ selkey_

MultiID IOObjContext::selkey_

If set, overrules the 'standard'.

◆ stdseltype

StdSelType& IOObjContext::stdseltype

◆ stdseltype_

StdSelType IOObjContext::stdseltype_

intrinsics

◆ toselect

IOObjSelConstraints& IOObjContext::toselect

◆ toselect_

IOObjSelConstraints IOObjContext::toselect_

◆ trgroup

const TranslatorGroup*& IOObjContext::trgroup

◆ trgroup_

const TranslatorGroup* IOObjContext::trgroup_

Mandatory, must never be 0.


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