OpendTect  6.6
Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Conn Class Referenceabstract

Data connection. More...

Inheritance diagram for Conn:
[legend]

Public Member Functions

virtual ~Conn ()
 
virtual void close ()
 
Connconn ()
 
const Connconn () const
 Returns the actual connection doing the work. More...
 
virtual const char * connType () const =0
 
virtual const char * creationMessage () const
 
virtual bool forRead () const =0
 
virtual bool forWrite () const
 
virtual StreamConngetStream ()
 
virtual bool isBad () const =0
 
bool isStream () const
 
const MultiIDlinkedTo () const
 
void setLinkedTo (const MultiID &id)
 

Static Public Attributes

static const bool Read
 
static const bool Write
 

Protected Member Functions

 Conn ()
 
virtual ConngtConn () const
 

Protected Attributes

MultiID ioobjid_
 

Detailed Description

Data connection.

Data can be found in files and data stores. To access these data sources, some kind of connection must be set up. This class defines a simple interface common to these connections.

<>

Constructor & Destructor Documentation

◆ ~Conn()

virtual Conn::~Conn ( )
inlinevirtual

◆ Conn()

Conn::Conn ( )
inlineprotected

Member Function Documentation

◆ close()

virtual void Conn::close ( )
inlinevirtual

Reimplemented in StreamConn, and XConn.

◆ conn() [1/2]

Conn* Conn::conn ( )
inline

◆ conn() [2/2]

const Conn* Conn::conn ( ) const
inline

Returns the actual connection doing the work.

◆ connType()

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

Implemented in StreamConn, and XConn.

◆ creationMessage()

virtual const char* Conn::creationMessage ( ) const
inlinevirtual

Reimplemented in StreamConn, and XConn.

◆ forRead()

virtual bool Conn::forRead ( ) const
pure virtual

Implemented in StreamConn, and XConn.

◆ forWrite()

virtual bool Conn::forWrite ( ) const
inlinevirtual

Reimplemented in StreamConn, and XConn.

◆ getStream()

virtual StreamConn* Conn::getStream ( )
inlinevirtual

Reimplemented in StreamConn, and XConn.

◆ gtConn()

virtual Conn* Conn::gtConn ( ) const
inlineprotectedvirtual

Reimplemented in XConn.

◆ isBad()

virtual bool Conn::isBad ( ) const
pure virtual

Implemented in StreamConn, and XConn.

◆ isStream()

bool Conn::isStream ( ) const
inline

◆ linkedTo()

const MultiID& Conn::linkedTo ( ) const
inline

◆ setLinkedTo()

void Conn::setLinkedTo ( const MultiID id)
inline

Member Data Documentation

◆ ioobjid_

MultiID Conn::ioobjid_
protected

◆ Read

const bool Conn::Read
static

◆ Write

const bool Conn::Write
static

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