OpendTect-6_4  6.4
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

mStartAllowDeprecatedSection CtxtIOObj (const IOObjContext &ct, IOObj *o=0)
 
 CtxtIOObj (const CtxtIOObj &ct)
 
mStopAllowDeprecatedSection void destroyAll ()
 
void setObj (IOObj *)
 destroys previous More...
 
void setObj (const MultiID &)
 destroys previous More...
 
void setPar (IOPar *)
 destroys previous More...
 
int fillObj (bool mktmpifnew=false, int translidxfornew=-1)
 
void fillIfOnlyOne ()
 
void fillDefault (bool alsoifonlyone=true)
 gets Default.xx or does fillIfOnlyOne() More...
 
void fillDefaultWithKey (const char *, bool alsoifonlyone=true)
 With alternate key. More...
 
- Public Member Functions inherited from NamedObject
 NamedObject (const char *nm=0)
 
 NamedObject (const NamedObject *linkedto)
 
 NamedObject (const NamedObject &)
 
virtual ~NamedObject ()
 
void setLinkedTo (NamedObject *)
 
bool operator== (const NamedObject &oth) const
 
virtual const OD::Stringname () const
 
virtual const OD::StringannotName () const
 
virtual void setName (const char *)
 
void setCleanName (const char *)
 cleans string first More...
 
void deleteNotify (const CallBack &)
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (NotifierAccess &, const CallBack &, bool onlyifnew=false)
 
bool attachCB (NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false)
 
void detachCB (NotifierAccess &, const CallBack &)
 
void detachCB (NotifierAccess *notif, const CallBack &cb)
 
bool isNotifierAttached (NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 

Public Attributes

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

Additional Inherited Members

- Protected Member Functions inherited from CallBacker
void detachAllNotifiers ()
 Call from the destructor of your inherited object. More...
 
- Protected Attributes inherited from NamedObject
BufferStringname_
 
NamedObjectlinkedto_
 
CallBackSetdelnotify_
 

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

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

Member Function Documentation

mStopAllowDeprecatedSection 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

void CtxtIOObj::setObj ( IOObj )

destroys previous

void CtxtIOObj::setObj ( const MultiID )

destroys previous

void CtxtIOObj::setPar ( IOPar )

destroys previous

Member Data Documentation

mDeprecated IOObjContext& CtxtIOObj::ctxt
IOObjContext CtxtIOObj::ctxt_
mDeprecated IOObj*& CtxtIOObj::ioobj
IOObj* CtxtIOObj::ioobj_
mDeprecated IOPar*& CtxtIOObj::iopar
IOPar* CtxtIOObj::iopar_

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