|
DATRW++ library: seismic data I/O with multiple formats
|
Class to read any type of data file. More...
#include <readany.h>

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::idatstream & | idatstream () |
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... | |
| ianystream & | operator= (const ianystream &) |
| no copy More... | |
Private Attributes | |
| datrw::Eformat | Mformat |
| datrw::idatstream * | Mis |
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.