Public Member Functions | Public Attributes

CtxtIOObj Class Reference

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

Inheritance diagram for CtxtIOObj:
NamedObject CallBacker

List of all members.

Public Member Functions

 CtxtIOObj (const IOObjContext &ct, IOObj *o=0)
 CtxtIOObj (const CtxtIOObj &ct)
void destroyAll ()
void setObj (IOObj *)
 destroys previous
void setObj (const MultiID &)
 destroys previous
void setPar (IOPar *)
 destroys previous
int fillObj (bool mktmpifnew=false)
void fillIfOnlyOne ()
void fillDefault (bool alsoifonlyone=true)
 gets Default.xx or does fillIfOnlyOne()
void fillDefaultWithKey (const char *, bool alsoifonlyone=true)
 With alternate key.

Public Attributes

IOObjContext ctxt
IOObjioobj
IOPariopar

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::CtxtIOObj ( const IOObjContext ct,
IOObj o = 0 
) [inline]
CtxtIOObj::CtxtIOObj ( const CtxtIOObj ct  )  [inline]

Member Function Documentation

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  ) 

If ioobj not valid, fills using ctxt.name() 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