OpendTect  6.6
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
 
virtual const char * connType () const
 
virtual void copyFrom (const IOObj *)
 
int curConnIdx () const
 
FileSpecfileSpec ()
 
const FileSpecfileSpec () const
 
virtual const char * fullUserExpr (bool forread=true) const
 
void genFileName ()
 
virtual ConngetConn (bool) const
 
virtual bool implExists (bool forread) const
 
virtual bool implManagesObjects () const
 
virtual bool implReadOnly () const
 
virtual bool implRemove () const
 
virtual bool implRename (const char *, const CallBack *cb=0)
 
virtual bool implSetReadOnly (bool) const
 
virtual bool isBad () const
 
bool isMulti () const
 
bool isMultiConn () const
 
virtual BufferString mainFileName () const
 
int nrFiles () const
 
void resetConnIdx () const
 
virtual void setAbsDirectory (const char *)
 
void setConnIdx (int idx) const
 
virtual void setDirName (const char *)
 
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
 
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 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 &)
 
virtual const name_typename () const
 
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

virtual bool getFrom (ascistream &)
 
StreamProvidergetStreamProv (bool, bool f=true) const
 
bool implDoAll (bool, bool yn=true) const
 
virtual bool putTo (ascostream &) const
 
- Protected Member Functions inherited from IOObj
 IOObj (const char *nm=0, const char *ky=0)
 
 IOObj (const IOObj &)
 
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 *, const char *)
 

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()

virtual const char* IOStream::connType ( ) const
virtual

Implements IOObj.

◆ copyFrom()

virtual void IOStream::copyFrom ( const IOObj )
virtual

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()

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

Implements IOObj.

◆ genFileName()

void IOStream::genFileName ( )

◆ getConn()

virtual Conn* IOStream::getConn ( bool  ) const
virtual

Implements IOObj.

◆ getFrom()

virtual bool IOStream::getFrom ( ascistream )
protectedvirtual

Implements IOObj.

◆ getStreamProv()

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

◆ implDoAll()

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

◆ implExists()

virtual bool IOStream::implExists ( bool  forread) const
virtual

Implements IOObj.

◆ implManagesObjects()

virtual bool IOStream::implManagesObjects ( ) const
inlinevirtual

Reimplemented from IOObj.

◆ implReadOnly()

virtual bool IOStream::implReadOnly ( ) const
virtual

Reimplemented from IOObj.

◆ implRemove()

virtual bool IOStream::implRemove ( ) const
virtual

Reimplemented from IOObj.

◆ implRename()

virtual bool IOStream::implRename ( const char *  ,
const CallBack cb = 0 
)
virtual

Reimplemented from IOObj.

◆ implSetReadOnly()

virtual bool IOStream::implSetReadOnly ( bool  ) const
virtual

Reimplemented from IOObj.

◆ isBad()

virtual bool IOStream::isBad ( ) const
virtual

Implements IOObj.

◆ isMulti()

bool IOStream::isMulti ( ) const
inline

◆ isMultiConn()

bool IOStream::isMultiConn ( ) const
inline

◆ mainFileName()

virtual BufferString IOStream::mainFileName ( ) const
virtual

Reimplemented from IOObj.

◆ nrFiles()

int IOStream::nrFiles ( ) const
inline

◆ putTo()

virtual bool IOStream::putTo ( ascostream ) const
protectedvirtual

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()

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

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-2022