OpendTect
7.0
|
Holds an IOObjCtxt plus a pointer to an IOObj and/or an IOPar. More...
Public Member Functions | |
CtxtIOObj (const CtxtIOObj &) | |
CtxtIOObj (const IOObjContext &, IOObj *o=nullptr) | |
~CtxtIOObj () | |
void | destroyAll () |
void | fillDefault (bool alsoifonlyone=true) |
gets Default.xx or does fillIfOnlyOne() More... | |
void | fillDefaultWithKey (const char *, bool alsoifonlyone=true) |
With alternate key. More... | |
void | fillIfOnlyOne () |
int | fillObj (bool mktmpifnew=false, int translidxfornew=-1) |
BufferString | getName () const override |
virtual const OD::String & | name () const override |
void | setName (const char *nm) override |
void | setObj (const MultiID &) |
destroys previous More... | |
void | setObj (IOObj *) |
destroys previous More... | |
void | setPar (IOPar *) |
destroys previous More... | |
Public Member Functions inherited from NamedObject | |
NamedObject (const char *nm=nullptr) | |
NamedObject (const NamedObject &oth) | |
virtual | ~NamedObject () |
bool | getNameFromPar (const IOPar &) |
NamedObject & | operator= (const NamedObject &) |
bool | operator== (const NamedObject &oth) const |
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 |
Public Attributes | |
IOObjContext & | ctxt |
IOObjContext | ctxt_ |
IOObj *& | ioobj |
IOObj * | ioobj_ |
IOPar *& | iopar |
IOPar * | iopar_ |
Additional Inherited Members | |
Public Types inherited from ObjectWithName | |
typedef OD::String | name_type |
Protected Attributes inherited from NamedObject | |
BufferString | name_ |
Holds an IOObjCtxt plus a pointer to an IOObj and/or an IOPar.
Neither the IOObj nor the IOPar are managed by this object. But, when you use setObj or setPar, the old object pointed to will be deleted. If you don't want that, you'll have to just assign.
<>
CtxtIOObj::CtxtIOObj | ( | const IOObjContext & | , |
IOObj * | o = nullptr |
||
) |
CtxtIOObj::CtxtIOObj | ( | const CtxtIOObj & | ) |
CtxtIOObj::~CtxtIOObj | ( | ) |
void CtxtIOObj::destroyAll | ( | ) |
void CtxtIOObj::fillDefault | ( | bool | alsoifonlyone = true | ) |
gets Default.xx or does fillIfOnlyOne()
void CtxtIOObj::fillDefaultWithKey | ( | const char * | , |
bool | alsoifonlyone = true |
||
) |
With alternate key.
void CtxtIOObj::fillIfOnlyOne | ( | ) |
replaces ioobj if there's only one That one must match the preconditions
int CtxtIOObj::fillObj | ( | bool | mktmpifnew = false , |
int | translidxfornew = -1 |
||
) |
If ioobj not valid, fills using ctxt.name() return 0=fail, 1=existing found, 2=new made
|
inlineoverridevirtual |
Reimplemented from NamedObject.
|
inlineoverridevirtual |
Reimplemented from NamedObject.
|
inlineoverridevirtual |
Reimplemented from NamedObject.
void CtxtIOObj::setObj | ( | const MultiID & | ) |
destroys previous
void CtxtIOObj::setObj | ( | IOObj * | ) |
destroys previous
void CtxtIOObj::setPar | ( | IOPar * | ) |
destroys previous
IOObjContext& CtxtIOObj::ctxt |
IOObjContext CtxtIOObj::ctxt_ |
IOObj*& CtxtIOObj::ioobj |
IOObj* CtxtIOObj::ioobj_ |
IOPar*& CtxtIOObj::iopar |
IOPar* CtxtIOObj::iopar_ |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024