OpendTect  7.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
IOObj Class Referenceabstract
Inheritance diagram for IOObj:
[legend]

Public Member Functions

virtual ~IOObj ()
 
void acquireNewKeyIn (const MultiID &)
 This will give the IOObj a new (free) ID. More...
 
IOObjclone () const
 
virtual const char * connType () const =0
 
virtual void copyFrom (const IOObj *)=0
 
TranslatorcreateTranslator () const
 
virtual const char * dirName () const
 The directory ame within the tree. More...
 
virtual const char * fullUserExpr (bool forread=true) const =0
 
virtual ConngetConn (bool forread) const =0
 
virtual const OD::Stringgroup () const
 
virtual bool hasConnType (const char *s) const
 
virtual bool implExists (bool forread) const =0
 
virtual bool implIsLink () const
 
virtual bool implReadOnly () const
 
virtual bool implRemove () const
 
virtual bool implRename (const char *)
 
virtual bool implSetReadOnly (bool) const
 
virtual bool isBad () const =0
 
bool isInCurrentSurvey () const
 
bool isProcTmp () const
 
virtual bool isSubdir () const
 
bool isTmp () const
 
bool isUserSelectable (bool forread=true) const
 
virtual const MultiIDkey () const
 
virtual BufferString mainFileName () const
 
virtual IOParpars () const
 
uiString phrCannotLoadObj () const
 
uiString phrCannotOpenObj () const
 
uiString phrCannotReadObj () const
 
uiString phrCannotWriteObj () const
 
uiString phrCannotWriteToDB () const
 
virtual void setDirName (const char *s)
 
virtual void setGroup (const char *s)
 
void setKey (const char *nm)
 
void setKey (const MultiID &key)
 
void setSurveyDefault (const char *subsel=0) const
 
virtual void setTranslator (const char *s)
 
virtual const OD::Stringtranslator () const
 
uiString uiName () const
 
void updateCreationPars () const
 
- Public Member Functions inherited from NamedObject
 NamedObject (const char *nm=nullptr)
 
 NamedObject (const NamedObject &oth)
 
virtual ~NamedObject ()
 
virtual BufferString getName () const
 
bool getNameFromPar (const IOPar &)
 
const name_typename () const override
 
NamedObjectoperator= (const NamedObject &)
 
bool operator== (const NamedObject &oth) const
 
virtual void setName (const char *nm)
 
- 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
 

Static Public Member Functions

static int addProducer (IOObjProducer *)
 Factory for IOObj types. Not for casual use. More...
 
static bool isKey (const char *)
 
static bool isSurveyDefault (const MultiID &)
 Checks the 'Default.' entries in SI().pars() More...
 
static int tmpID ()
 

Protected Member Functions

 IOObj (const char *nm, const MultiID &)
 
 IOObj (const char *nm=0, const char *ky=0)
 
 IOObj (const IOObj &)
 
virtual bool getFrom (ascistream &)=0
 
virtual int myKey () const
 
bool put (ascostream &) const
 
virtual bool putTo (ascostream &) const =0
 

Static Protected Member Functions

static IOObjget (ascistream &, const char *, int)
 

Protected Attributes

BufferString dirnm_
 
BufferString group_
 
MultiID key_
 
BufferString transl_
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Private Member Functions

void copyStuffFrom (const IOObj &)
 

Static Private Member Functions

static IOObjproduce (const char *, const char *nm, const MultiID &, bool initdefaults=true)
 

Private Attributes

IOParpars_
 

Friends

class IODir
 

Additional Inherited Members

- Public Types inherited from ObjectWithName
typedef OD::String name_type
 

Detailed Description

<>

Constructor & Destructor Documentation

◆ ~IOObj()

virtual IOObj::~IOObj ( )
virtual

◆ IOObj() [1/3]

IOObj::IOObj ( const char *  nm = 0,
const char *  ky = 0 
)
protected

◆ IOObj() [2/3]

IOObj::IOObj ( const char *  nm,
const MultiID  
)
protected

◆ IOObj() [3/3]

IOObj::IOObj ( const IOObj )
protected

Member Function Documentation

◆ acquireNewKeyIn()

void IOObj::acquireNewKeyIn ( const MultiID )

This will give the IOObj a new (free) ID.

◆ addProducer()

static int IOObj::addProducer ( IOObjProducer )
static

Factory for IOObj types. Not for casual use.

◆ clone()

IOObj* IOObj::clone ( ) const

◆ connType()

virtual const char* IOObj::connType ( ) const
pure virtual

Implemented in IOSubDir, IOX, and IOStream.

◆ copyFrom()

virtual void IOObj::copyFrom ( const IOObj )
pure virtual

Implemented in IOSubDir, IOX, and IOStream.

◆ copyStuffFrom()

void IOObj::copyStuffFrom ( const IOObj )
private

◆ createTranslator()

Translator* IOObj::createTranslator ( ) const

returns a subclass of Translator according to the translator name and group.

◆ dirName()

virtual const char* IOObj::dirName ( ) const
inlinevirtual

The directory ame within the tree.

Reimplemented in IOSubDir, and IOX.

◆ fullUserExpr()

virtual const char* IOObj::fullUserExpr ( bool  forread = true) const
pure virtual

Implemented in IOSubDir, IOX, and IOStream.

◆ get()

static IOObj* IOObj::get ( ascistream ,
const char *  ,
int   
)
staticprotected

◆ getConn()

virtual Conn* IOObj::getConn ( bool  forread) const
pure virtual

Implemented in IOX, IOStream, and IOSubDir.

◆ getFrom()

virtual bool IOObj::getFrom ( ascistream )
protectedpure virtual

Implemented in IOSubDir, IOX, and IOStream.

◆ group()

virtual const OD::String& IOObj::group ( ) const
inlinevirtual

◆ hasConnType()

virtual bool IOObj::hasConnType ( const char *  s) const
inlinevirtual

◆ implExists()

virtual bool IOObj::implExists ( bool  forread) const
pure virtual

Implemented in IOSubDir, IOX, and IOStream.

◆ implIsLink()

virtual bool IOObj::implIsLink ( ) const
virtual

◆ implReadOnly()

virtual bool IOObj::implReadOnly ( ) const
inlinevirtual

Reimplemented in IOSubDir, and IOStream.

◆ implRemove()

virtual bool IOObj::implRemove ( ) const
inlinevirtual

Reimplemented in IOSubDir, and IOStream.

◆ implRename()

virtual bool IOObj::implRename ( const char *  )
inlinevirtual

Reimplemented in IOSubDir, and IOStream.

◆ implSetReadOnly()

virtual bool IOObj::implSetReadOnly ( bool  ) const
inlinevirtual

Reimplemented in IOSubDir, and IOStream.

◆ isBad()

virtual bool IOObj::isBad ( ) const
pure virtual

Implemented in IOSubDir, IOX, and IOStream.

◆ isInCurrentSurvey()

bool IOObj::isInCurrentSurvey ( ) const

◆ isKey()

static bool IOObj::isKey ( const char *  )
static

Returns whether given string may be a valid key

◆ isProcTmp()

bool IOObj::isProcTmp ( ) const

◆ isSubdir()

virtual bool IOObj::isSubdir ( ) const
inlinevirtual

Reimplemented in IOSubDir.

◆ isSurveyDefault()

static bool IOObj::isSurveyDefault ( const MultiID )
static

Checks the 'Default.' entries in SI().pars()

◆ isTmp()

bool IOObj::isTmp ( ) const
inline

◆ isUserSelectable()

bool IOObj::isUserSelectable ( bool  forread = true) const

◆ key()

virtual const MultiID& IOObj::key ( ) const
inlinevirtual

◆ mainFileName()

virtual BufferString IOObj::mainFileName ( ) const
inlinevirtual

Reimplemented in IOStream.

◆ myKey()

virtual int IOObj::myKey ( ) const
protectedvirtual

Reimplemented in IOSubDir.

◆ pars()

virtual IOPar& IOObj::pars ( ) const
inlinevirtual

These are the extra parameters: "#xxx: yyy" in .omf

◆ phrCannotLoadObj()

uiString IOObj::phrCannotLoadObj ( ) const

◆ phrCannotOpenObj()

uiString IOObj::phrCannotOpenObj ( ) const

◆ phrCannotReadObj()

uiString IOObj::phrCannotReadObj ( ) const

◆ phrCannotWriteObj()

uiString IOObj::phrCannotWriteObj ( ) const

◆ phrCannotWriteToDB()

uiString IOObj::phrCannotWriteToDB ( ) const

◆ produce()

static IOObj* IOObj::produce ( const char *  ,
const char *  nm,
const MultiID ,
bool  initdefaults = true 
)
staticprivate

◆ put()

bool IOObj::put ( ascostream ) const
protected

◆ putTo()

virtual bool IOObj::putTo ( ascostream ) const
protectedpure virtual

Implemented in IOSubDir, IOX, and IOStream.

◆ setDirName()

virtual void IOObj::setDirName ( const char *  s)
inlinevirtual

Reimplemented in IOStream.

◆ setGroup()

virtual void IOObj::setGroup ( const char *  s)
inlinevirtual

◆ setKey() [1/2]

void IOObj::setKey ( const char *  nm)
inline

◆ setKey() [2/2]

void IOObj::setKey ( const MultiID key)
inline

◆ setSurveyDefault()

void IOObj::setSurveyDefault ( const char *  subsel = 0) const
Parameters
subselmay be a subselection lower than the translator group, such as "Velocity".

◆ setTranslator()

virtual void IOObj::setTranslator ( const char *  s)
inlinevirtual

◆ tmpID()

static int IOObj::tmpID ( )
inlinestatic

◆ translator()

virtual const OD::String& IOObj::translator ( ) const
inlinevirtual

◆ uiName()

uiString IOObj::uiName ( ) const
inline

◆ updateCreationPars()

void IOObj::updateCreationPars ( ) const

Friends And Related Function Documentation

◆ IODir

friend class IODir
friend

Member Data Documentation

◆ dirnm_

BufferString IOObj::dirnm_
protected

◆ group_

BufferString IOObj::group_
protected

◆ key_

MultiID IOObj::key_
protected

◆ pars_

IOPar& IOObj::pars_
private

◆ transl_

BufferString IOObj::transl_
protected

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