OpendTect  6.6
Public Member Functions | Public Attributes | List of all members
CtxtIOObj Class Reference

Holds an IOObjCtxt plus a pointer to an IOObj and/or an IOPar. More...

Inheritance diagram for CtxtIOObj:
[legend]

Public Member Functions

 CtxtIOObj (const CtxtIOObj &ct)
 
mStartAllowDeprecatedSection CtxtIOObj (const IOObjContext &ct, IOObj *o=0)
 
mStopAllowDeprecatedSection 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)
 
virtual BufferString getName () const
 
virtual const OD::Stringname () const
 
virtual void setName (const char *nm)
 
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 &)
 
NamedObjectoperator= (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

IOObjContextctxt
 
IOObjContext ctxt_
 
IOObj *& ioobj
 
IOObjioobj_
 
IOPar *& iopar
 
IOPariopar_
 

Additional Inherited Members

- Public Types inherited from ObjectWithName
typedef OD::String name_type
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Detailed Description

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.

<>

Constructor & Destructor Documentation

◆ CtxtIOObj() [1/2]

mStartAllowDeprecatedSection CtxtIOObj::CtxtIOObj ( const IOObjContext ct,
IOObj o = 0 
)
inline

◆ CtxtIOObj() [2/2]

CtxtIOObj::CtxtIOObj ( const CtxtIOObj ct)
inline

Member Function Documentation

◆ destroyAll()

mStopAllowDeprecatedSection void CtxtIOObj::destroyAll ( )

◆ fillDefault()

void CtxtIOObj::fillDefault ( bool  alsoifonlyone = true)

gets Default.xx or does fillIfOnlyOne()

◆ fillDefaultWithKey()

void CtxtIOObj::fillDefaultWithKey ( const char *  ,
bool  alsoifonlyone = true 
)

With alternate key.

◆ fillIfOnlyOne()

void CtxtIOObj::fillIfOnlyOne ( )

replaces ioobj if there's only one That one must match the preconditions

◆ fillObj()

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

◆ getName()

virtual BufferString CtxtIOObj::getName ( ) const
inlinevirtual

Reimplemented from NamedObject.

◆ name()

virtual const OD::String& CtxtIOObj::name ( ) const
inlinevirtual

Reimplemented from NamedObject.

◆ setName()

virtual void CtxtIOObj::setName ( const char *  nm)
inlinevirtual

Reimplemented from NamedObject.

◆ setObj() [1/2]

void CtxtIOObj::setObj ( const MultiID )

destroys previous

◆ setObj() [2/2]

void CtxtIOObj::setObj ( IOObj )

destroys previous

◆ setPar()

void CtxtIOObj::setPar ( IOPar )

destroys previous

Member Data Documentation

◆ ctxt

IOObjContext& CtxtIOObj::ctxt

◆ ctxt_

IOObjContext CtxtIOObj::ctxt_

◆ ioobj

IOObj*& CtxtIOObj::ioobj

◆ ioobj_

IOObj* CtxtIOObj::ioobj_

◆ iopar

IOPar*& CtxtIOObj::iopar

◆ iopar_

IOPar* CtxtIOObj::iopar_

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