OpendTect  6.6
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 ()
 
virtual void close ()
 
const char * connType () const
 
virtual const char * creationMessage () const
 
const char * fileName () const
 
virtual bool forRead () const
 
virtual bool forWrite () const
 
virtual StreamConngetStream ()
 
virtual bool isBad () const
 
od_istreamiStream ()
 
od_streamodStream ()
 
od_ostreamoStream ()
 
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()

virtual void StreamConn::close ( )
virtual

Reimplemented from Conn.

◆ connType()

const char* StreamConn::connType ( ) const
inlinevirtual

Implements Conn.

◆ creationMessage()

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

Reimplemented from Conn.

◆ fileName()

const char* StreamConn::fileName ( ) const

◆ fillCrMsg()

void StreamConn::fillCrMsg ( od_stream )
private

◆ forRead()

virtual bool StreamConn::forRead ( ) const
virtual

Implements Conn.

◆ forWrite()

virtual bool StreamConn::forWrite ( ) const
virtual

Reimplemented from Conn.

◆ getStream()

virtual StreamConn* StreamConn::getStream ( )
inlinevirtual

Reimplemented from Conn.

◆ isBad()

virtual bool StreamConn::isBad ( ) const
virtual

Implements Conn.

◆ iStream()

od_istream& StreamConn::iStream ( )

◆ odStream()

od_stream& StreamConn::odStream ( )

◆ oStream()

od_ostream& StreamConn::oStream ( )

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