OpendTect-6_4  6.4
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 (od_istream *)
 strm becomes all mine More...
 
 StreamConn (od_ostream *)
 strm becomes all mine More...
 
 StreamConn (od_istream &)
 strm remains all yours More...
 
 StreamConn (od_ostream &)
 strm remains all yours More...
 
 StreamConn (const char *fnm, bool forread)
 
virtual ~StreamConn ()
 
virtual bool isBad () const
 
virtual const char * creationMessage () const
 
virtual bool forRead () const
 
virtual bool forWrite () const
 
virtual StreamConngetStream ()
 
virtual void close ()
 
void setStream (od_istream *)
 strm becomes all mine More...
 
void setStream (od_ostream *)
 strm becomes all mine More...
 
void setStream (od_istream &)
 strm remains all yours More...
 
void setStream (od_ostream &)
 strm remains all yours More...
 
od_streamodStream ()
 
od_istreamiStream ()
 
od_ostreamoStream ()
 
void setFileName (const char *, bool forread)
 
const char * fileName () const
 
const char * connType () const
 
- Public Member Functions inherited from Conn
virtual ~Conn ()
 
bool isStream () const
 
Connconn ()
 
const Connconn () const
 Returns the actual connection doing the work. More...
 
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

od_streamstrm_
 
bool mine_
 
BufferString creationmsg_
 

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::StreamConn ( )
StreamConn::StreamConn ( od_istream )

strm becomes all mine

StreamConn::StreamConn ( od_ostream )

strm becomes all mine

StreamConn::StreamConn ( od_istream )

strm remains all yours

StreamConn::StreamConn ( od_ostream )

strm remains all yours

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

Member Function Documentation

virtual void StreamConn::close ( )
virtual

Reimplemented from Conn.

const char* StreamConn::connType ( ) const
inlinevirtual

Implements Conn.

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

Reimplemented from Conn.

const char* StreamConn::fileName ( ) const
void StreamConn::fillCrMsg ( od_stream )
private
virtual bool StreamConn::forRead ( ) const
virtual

Implements Conn.

virtual bool StreamConn::forWrite ( ) const
virtual

Reimplemented from Conn.

virtual StreamConn* StreamConn::getStream ( )
inlinevirtual

Reimplemented from Conn.

virtual bool StreamConn::isBad ( ) const
virtual

Implements Conn.

od_istream& StreamConn::iStream ( )
od_stream& StreamConn::odStream ( )
od_ostream& StreamConn::oStream ( )
void StreamConn::setFileName ( const char *  ,
bool  forread 
)
void StreamConn::setStream ( od_istream )

strm becomes all mine

void StreamConn::setStream ( od_ostream )

strm becomes all mine

void StreamConn::setStream ( od_istream )

strm remains all yours

void StreamConn::setStream ( od_ostream )

strm remains all yours

static const char* StreamConn::sType ( )
static

Member Data Documentation

BufferString StreamConn::creationmsg_
private
bool StreamConn::mine_
private
od_stream* StreamConn::strm_
private

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