OpendTect  7.0
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
StreamConn Class Reference

Connection with an underlying iostream. More...

Inheritance diagram for StreamConn:
[legend]

Public Member Functions

 StreamConn ()
 
 StreamConn (const char *fnm, bool forread)
 
 StreamConn (od_istream &)
 strm remains all yours More...
 
 StreamConn (od_istream *)
 strm becomes all mine More...
 
 StreamConn (od_ostream &)
 strm remains all yours More...
 
 StreamConn (od_ostream *)
 strm becomes all mine More...
 
virtual ~StreamConn ()
 
void close () override
 
void closeNoDelete ()
 
const char * connType () const override
 
const char * creationMessage () const override
 
const char * fileName () const
 
bool forRead () const override
 
bool forWrite () const override
 
StreamConngetStream () override
 
bool isBad () const override
 
od_istreamiStream ()
 
od_streamodStream ()
 
od_ostreamoStream ()
 
bool reOpen ()
 
void setFileName (const char *, bool forread)
 
void setStream (od_istream &)
 strm remains all yours More...
 
void setStream (od_istream *)
 strm becomes all mine More...
 
void setStream (od_ostream &)
 strm remains all yours More...
 
void setStream (od_ostream *)
 strm becomes all mine More...
 
- Public Member Functions inherited from Conn
virtual ~Conn ()
 
Connconn ()
 
const Connconn () const
 Returns the actual connection doing the work. More...
 
bool isStream () const
 
const MultiIDlinkedTo () const
 
void setLinkedTo (const MultiID &id)
 

Static Public Member Functions

static const char * sType ()
 

Private Member Functions

void fillCrMsg (od_stream *)
 

Private Attributes

BufferString creationmsg_
 
bool mine_
 
od_streamstrm_
 

Additional Inherited Members

- Static Public Attributes inherited from Conn
static const bool Read
 
static const bool Write
 
- Protected Member Functions inherited from Conn
 Conn ()
 
virtual ConngtConn () const
 
- Protected Attributes inherited from Conn
MultiID ioobjid_
 

Detailed Description

Connection with an underlying iostream.

<>

Constructor & Destructor Documentation

◆ StreamConn() [1/6]

StreamConn::StreamConn ( )

◆ StreamConn() [2/6]

StreamConn::StreamConn ( od_istream )

strm becomes all mine

◆ StreamConn() [3/6]

StreamConn::StreamConn ( od_ostream )

strm becomes all mine

◆ StreamConn() [4/6]

StreamConn::StreamConn ( od_istream )

strm remains all yours

◆ StreamConn() [5/6]

StreamConn::StreamConn ( od_ostream )

strm remains all yours

◆ StreamConn() [6/6]

StreamConn::StreamConn ( const char *  fnm,
bool  forread 
)

◆ ~StreamConn()

virtual StreamConn::~StreamConn ( )
virtual

Member Function Documentation

◆ close()

void StreamConn::close ( )
overridevirtual

Reimplemented from Conn.

◆ closeNoDelete()

void StreamConn::closeNoDelete ( )

◆ connType()

const char* StreamConn::connType ( ) const
inlineoverridevirtual

Implements Conn.

◆ creationMessage()

const char* StreamConn::creationMessage ( ) const
inlineoverridevirtual

Reimplemented from Conn.

◆ fileName()

const char* StreamConn::fileName ( ) const

◆ fillCrMsg()

void StreamConn::fillCrMsg ( od_stream )
private

◆ forRead()

bool StreamConn::forRead ( ) const
overridevirtual

Implements Conn.

◆ forWrite()

bool StreamConn::forWrite ( ) const
overridevirtual

Reimplemented from Conn.

◆ getStream()

StreamConn* StreamConn::getStream ( )
inlineoverridevirtual

Reimplemented from Conn.

◆ isBad()

bool StreamConn::isBad ( ) const
overridevirtual

Implements Conn.

◆ iStream()

od_istream& StreamConn::iStream ( )

◆ odStream()

od_stream& StreamConn::odStream ( )

◆ oStream()

od_ostream& StreamConn::oStream ( )

◆ reOpen()

bool StreamConn::reOpen ( )

◆ setFileName()

void StreamConn::setFileName ( const char *  ,
bool  forread 
)

◆ setStream() [1/4]

void StreamConn::setStream ( od_istream )

strm remains all yours

◆ setStream() [2/4]

void StreamConn::setStream ( od_istream )

strm becomes all mine

◆ setStream() [3/4]

void StreamConn::setStream ( od_ostream )

strm remains all yours

◆ setStream() [4/4]

void StreamConn::setStream ( od_ostream )

strm becomes all mine

◆ sType()

static const char* StreamConn::sType ( )
static

Member Data Documentation

◆ creationmsg_

BufferString StreamConn::creationmsg_
private

◆ mine_

bool StreamConn::mine_
private

◆ strm_

od_stream* StreamConn::strm_
private

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