OpendTect  6.3
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 ()
 
virtual const OD::Stringname () const
 
virtual void setName (const char *nm)
 
virtual BufferString getName () const
 
void setObj (IOObj *)
 destroys previous More...
 
void setObj (const DBKey &)
 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 &oth)
 
virtual ~NamedObject ()
 
NamedObjectoperator= (const NamedObject &)
 
bool operator== (const NamedObject &oth) const
 
bool getNameFromPar (const IOPar &)
 
void putNameInPar (IOPar &) const
 

Public Attributes

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

Additional Inherited Members

- 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

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

virtual BufferString CtxtIOObj::getName ( ) const
inlinevirtual

Reimplemented from NamedObject.

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

Reimplemented from NamedObject.

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

Reimplemented from NamedObject.

void CtxtIOObj::setObj ( IOObj )

destroys previous

void CtxtIOObj::setObj ( const DBKey )

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. 2017