OpendTect
7.0
|
Holds the context for selecting and/or creating IOObjs. More...
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) | |
~IOObjContext () | |
IOStream * | crDefaultWriteObj (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 |
int | nrMatches (bool forgroup) const |
const char * | objectTypeName () const |
IOObjContext & | operator= (const IOObjContext &) |
void | require (const char *key, const char *typ, bool allowempty=false) |
const ZDomain::Info * | requiredZDomain () const |
void | requireType (const char *, bool allowempty=false) |
void | requireZDomain (const ZDomain::Info &, bool allowempty=true) |
bool | validIOObj (const IOObj &) const |
bool | validObj (const MultiID &) 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 &) |
const name_type & | name () const override |
NamedObject & | operator= (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 StdDirData * | getStdDirData (StdSelType) |
static int | totalNrStdDirs () |
Public Attributes | |
BufferString & | deftransl |
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... | |
MultiID & | selkey |
MultiID | selkey_ |
If set, overrules the 'standard'. More... | |
StdSelType & | stdseltype |
StdSelType | stdseltype_ |
intrinsics More... | |
IOObjSelConstraints & | toselect |
IOObjSelConstraints | toselect_ |
const TranslatorGroup *& | trgroup |
const TranslatorGroup * | trgroup_ |
Mandatory, must never be 0. More... | |
Additional Inherited Members | |
Protected Attributes inherited from NamedObject | |
BufferString | name_ |
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.
<>
IOObjContext::IOObjContext | ( | const TranslatorGroup * | , |
const char * | prefname = 0 |
||
) |
IOObjContext::IOObjContext | ( | const IOObjContext & | ) |
IOObjContext::~IOObjContext | ( | ) |
IOStream* IOObjContext::crDefaultWriteObj | ( | const Translator & | , |
const MultiID & | |||
) | const |
void IOObjContext::fillTrGroup | ( | ) | const |
Uses stdseltype_ to make a trgroup_ Should never be necessary
|
inline |
|
static |
|
static |
Including legacy names - smart.
MultiID IOObjContext::getSelKey | ( | ) | const |
|
static |
|
inline |
|
inline |
int IOObjContext::nrMatches | ( | ) | const |
int IOObjContext::nrMatches | ( | bool | forgroup | ) | const |
const char* IOObjContext::objectTypeName | ( | ) | const |
IOObjContext& IOObjContext::operator= | ( | const IOObjContext & | ) |
void IOObjContext::require | ( | const char * | key, |
const char * | typ, | ||
bool | allowempty = false |
||
) |
const ZDomain::Info* IOObjContext::requiredZDomain | ( | ) | const |
void IOObjContext::requireType | ( | const char * | , |
bool | allowempty = false |
||
) |
void IOObjContext::requireZDomain | ( | const ZDomain::Info & | , |
bool | allowempty = true |
||
) |
|
static |
bool IOObjContext::validIOObj | ( | const IOObj & | ) | const |
bool IOObjContext::validObj | ( | const MultiID & | ) | const |
BufferString& IOObjContext::deftransl |
BufferString IOObjContext::deftransl_ |
Translator to use for new entry.
bool& IOObjContext::forread |
bool IOObjContext::forread_ |
this selection only
bool& IOObjContext::maydooper |
bool IOObjContext::maydooper_ |
Will we allow add/remove etc?
bool& IOObjContext::multi |
bool IOObjContext::multi_ |
If true, multi allowed.
int& IOObjContext::newonlevel |
int IOObjContext::newonlevel_ |
level 0 is survey dir
MultiID& IOObjContext::selkey |
MultiID IOObjContext::selkey_ |
If set, overrules the 'standard'.
StdSelType& IOObjContext::stdseltype |
StdSelType IOObjContext::stdseltype_ |
intrinsics
IOObjSelConstraints& IOObjContext::toselect |
IOObjSelConstraints IOObjContext::toselect_ |
const TranslatorGroup*& IOObjContext::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-2024