Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes

IOObjContext Class Reference

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

Inheritance diagram for IOObjContext:
NamedObject CallBacker

List of all members.

Classes

struct  StdDirData

Public Types

enum  StdSelType {
  Seis = 0, Surf, Loc, Feat,
  WllInf, NLA, Misc, Attr,
  Mdl, None
}

Public Member Functions

 DeclareEnumUtils (StdSelType) IOObjContext(const TranslatorGroup *
 IOObjContext (const IOObjContext &)
IOObjContextoperator= (const IOObjContext &)
bool validIOObj (const IOObj &) const
bool hasStdSelKey () const
MultiID getSelKey () const
void fillTrGroup ()

Static Public Member Functions

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

Public Attributes

const char * prefname = 0)
StdSelType stdseltype
 intrinsics
const TranslatorGrouptrgroup
 Mandatory, must never be 0.
int newonlevel
 level 0 is survey dir
bool multi
 If true, multi allowed.
bool maychdir
 If not, only select from curdir.
bool forread
 this selection only
MultiID selkey
 If set, overrules the 'standard'.
bool maydooper
 Will we allow add/remove etc?
BufferString deftransl
 Translator to use for new entry.
IOObjSelConstraints toselect

Detailed Description

Holds the context for selecting and/or creating IOObjs.

Usually, this objects 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

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

Constructor & Destructor Documentation

IOObjContext::IOObjContext ( const IOObjContext  ) 

Member Function Documentation

IOObjContext::DeclareEnumUtils ( StdSelType   )  const
void IOObjContext::fillTrGroup (  ) 

Uses stdseltype to make a trgroup Should never be necessary

static BufferString IOObjContext::getDataDirName ( StdSelType   )  [static]

Including legacy names - smart.

MultiID IOObjContext::getSelKey (  )  const
static const StdDirData* IOObjContext::getStdDirData ( StdSelType   )  [static]
bool IOObjContext::hasStdSelKey (  )  const [inline]
IOObjContext& IOObjContext::operator= ( const IOObjContext  ) 
static int IOObjContext::totalNrStdDirs (  )  [static]
bool IOObjContext::validIOObj ( const IOObj  )  const

Member Data Documentation

this selection only

If not, only select from curdir.

Will we allow add/remove etc?

If true, multi allowed.

level 0 is survey dir

const char* IOObjContext::prefname = 0)

If set, overrules the 'standard'.

Mandatory, must never be 0.