OpendTect  7.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
IOStream Class Reference
Inheritance diagram for IOStream:
[legend]

Public Member Functions

 IOStream (const char *nm=0, const char *id=0, bool=false)
 
 IOStream (const IOStream &)
 
int connIdxFor (int nr) const
 
const char * connType () const override
 
void copyFrom (const IOObj *) override
 
int curConnIdx () const
 
FileSpecfileSpec ()
 
const FileSpecfileSpec () const
 
const char * fullUserExpr (bool forread=true) const override
 
void genFileName ()
 
ConngetConn (bool) const override
 
bool implExists (bool forread) const override
 
bool implReadOnly () const override
 
bool implRemove () const override
 
bool implRename (const char *) override
 
bool implSetReadOnly (bool) const override
 
bool isBad () const override
 
bool isMulti () const
 
bool isMultiConn () const
 
BufferString mainFileName () const override
 
int nrFiles () const
 
void resetConnIdx () const
 
virtual void setAbsDirectory (const char *)
 
void setConnIdx (int idx) const
 
void setDirName (const char *) override
 
void setExt (const char *ext)
 
bool toNextConnIdx () const
 
- Public Member Functions inherited from IOObj
virtual ~IOObj ()
 
void acquireNewKeyIn (const MultiID &)
 This will give the IOObj a new (free) ID. More...
 
IOObjclone () const
 
TranslatorcreateTranslator () const
 
virtual const char * dirName () const
 The directory ame within the tree. More...
 
virtual const OD::Stringgroup () const
 
virtual bool hasConnType (const char *s) const
 
virtual bool implIsLink () const
 
bool isInCurrentSurvey () const
 
bool isProcTmp () const
 
virtual bool isSubdir () const
 
bool isTmp () const
 
bool isUserSelectable (bool forread=true) const
 
virtual const MultiIDkey () const
 
virtual IOParpars () const
 
uiString phrCannotLoadObj () const
 
uiString phrCannotOpenObj () const
 
uiString phrCannotReadObj () const
 
uiString phrCannotWriteObj () const
 
uiString phrCannotWriteToDB () const
 
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
 

Protected Member Functions

bool getFrom (ascistream &) override
 
StreamProvidergetStreamProv (bool, bool f=true) const
 
bool implDoAll (bool, bool yn=true) const
 
bool putTo (ascostream &) const override
 
- Protected Member Functions inherited from IOObj
 IOObj (const char *nm, const MultiID &)
 
 IOObj (const char *nm=0, const char *ky=0)
 
 IOObj (const IOObj &)
 
virtual int myKey () const
 
bool put (ascostream &) const
 

Protected Attributes

int curfidx_
 
BufferString extension_
 
FileSpec fs_
 
BufferString specfname_
 
- Protected Attributes inherited from IOObj
BufferString dirnm_
 
BufferString group_
 
MultiID key_
 
BufferString transl_
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Additional Inherited Members

- Public Types inherited from ObjectWithName
typedef OD::String name_type
 
- Static Public Member Functions inherited from IOObj
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 ()
 
- Static Protected Member Functions inherited from IOObj
static IOObjget (ascistream &, const char *, int)
 

Detailed Description

<>

Constructor & Destructor Documentation

◆ IOStream() [1/2]

IOStream::IOStream ( const char *  nm = 0,
const char *  id = 0,
bool  = false 
)

◆ IOStream() [2/2]

IOStream::IOStream ( const IOStream )

Member Function Documentation

◆ connIdxFor()

int IOStream::connIdxFor ( int  nr) const

◆ connType()

const char* IOStream::connType ( ) const
overridevirtual

Implements IOObj.

◆ copyFrom()

void IOStream::copyFrom ( const IOObj )
overridevirtual

Implements IOObj.

◆ curConnIdx()

int IOStream::curConnIdx ( ) const
inline

◆ fileSpec() [1/2]

FileSpec& IOStream::fileSpec ( )
inline

◆ fileSpec() [2/2]

const FileSpec& IOStream::fileSpec ( ) const
inline

◆ fullUserExpr()

const char* IOStream::fullUserExpr ( bool  forread = true) const
overridevirtual

Implements IOObj.

◆ genFileName()

void IOStream::genFileName ( )

◆ getConn()

Conn* IOStream::getConn ( bool  ) const
overridevirtual

Implements IOObj.

◆ getFrom()

bool IOStream::getFrom ( ascistream )
overrideprotectedvirtual

Implements IOObj.

◆ getStreamProv()

StreamProvider* IOStream::getStreamProv ( bool  ,
bool  f = true 
) const
protected

◆ implDoAll()

bool IOStream::implDoAll ( bool  ,
bool  yn = true 
) const
protected

◆ implExists()

bool IOStream::implExists ( bool  forread) const
overridevirtual

Implements IOObj.

◆ implReadOnly()

bool IOStream::implReadOnly ( ) const
overridevirtual

Reimplemented from IOObj.

◆ implRemove()

bool IOStream::implRemove ( ) const
overridevirtual

Reimplemented from IOObj.

◆ implRename()

bool IOStream::implRename ( const char *  )
overridevirtual

Reimplemented from IOObj.

◆ implSetReadOnly()

bool IOStream::implSetReadOnly ( bool  ) const
overridevirtual

Reimplemented from IOObj.

◆ isBad()

bool IOStream::isBad ( ) const
overridevirtual

Implements IOObj.

◆ isMulti()

bool IOStream::isMulti ( ) const
inline

◆ isMultiConn()

bool IOStream::isMultiConn ( ) const
inline

◆ mainFileName()

BufferString IOStream::mainFileName ( ) const
overridevirtual

Reimplemented from IOObj.

◆ nrFiles()

int IOStream::nrFiles ( ) const
inline

◆ putTo()

bool IOStream::putTo ( ascostream ) const
overrideprotectedvirtual

Implements IOObj.

◆ resetConnIdx()

void IOStream::resetConnIdx ( ) const
inline

◆ setAbsDirectory()

virtual void IOStream::setAbsDirectory ( const char *  )
virtual

◆ setConnIdx()

void IOStream::setConnIdx ( int  idx) const
inline

◆ setDirName()

void IOStream::setDirName ( const char *  )
overridevirtual

Reimplemented from IOObj.

◆ setExt()

void IOStream::setExt ( const char *  ext)
inline

◆ toNextConnIdx()

bool IOStream::toNextConnIdx ( ) const
inline

Member Data Documentation

◆ curfidx_

int IOStream::curfidx_
mutableprotected

◆ extension_

BufferString IOStream::extension_
protected

◆ fs_

FileSpec IOStream::fs_
protected

◆ specfname_

BufferString IOStream::specfname_
protected

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