DATRW++ library: seismic data I/O with multiple formats
datrw::ianystream Class Reference

Class to read any type of data file. More...

#include <readany.h>

Collaboration diagram for datrw::ianystream:

Public Member Functions

 ianystream (std::istream &, const Eformat &format, const bool &debug=false)
 deprecated constructor, not taking format modifier More...
 
 ianystream (std::istream &, const std::string &format, const bool &debug=false)
 This constructor accepts format modifiers. More...
 
 ~ianystream ()
 
bool debug ()
 indicate debug mode More...
 
void debug (const bool &debug)
 set debug mode More...
 
datrw::idatstreamidatstream ()
 

Private Member Functions

 ianystream (const ianystream &)
 no copy More...
 
void open (std::istream &os, std::string format, const bool &debug=false)
 actually open stream (to be called by constructor) More...
 
ianystreamoperator= (const ianystream &)
 no copy More...
 

Private Attributes

datrw::Eformat Mformat
 
datrw::idatstreamMis
 

Detailed Description

Class to read any type of data file.

Notice: This does not work by inheritance. To select a specific type of input stream, we have to keep a reference and to delegate any function calls. But this is only necessary for functions that have to be called as a member function directly. Functions for which an input operator is defined, can by called by the stream input syntax. A delegating input operator will be defined below.

Examples:
libdatrwxxtests.cc.

Definition at line 82 of file readany.h.


The documentation for this class was generated from the following files: