DATRW++ library: seismic data I/O with multiple formats
|
Class to write any type of data file. More...
#include <writeany.h>
Public Member Functions | |
oanystream (std::ostream &, const Eformat &format, const bool &debug=false) | |
deprecated constructor, not taking format modifier More... | |
oanystream (std::ostream &, const std::string &format, const bool &debug=false) | |
This constructor accepts format modifiers. More... | |
~oanystream () | |
bool | debug () |
indicate debug mode More... | |
void | debug (const bool &debug) |
set debug mode More... | |
datrw::odatstream & | odatstream () |
Private Member Functions | |
oanystream (const oanystream &) | |
no copy More... | |
void | open (std::ostream &os, std::string format, const bool &debug=false) |
actually open stream (to be called by constructor) More... | |
oanystream & | operator= (const oanystream &) |
no copy More... | |
Private Attributes | |
datrw::Eformat | Mformat |
datrw::odatstream * | Mos |
Class to write any type of data file.
Notice: This does not work by inheritance. To select a specific type of output 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 output operator is defined, can by called by the stream output syntax. A delegating output operator will be defined below.
Definition at line 75 of file writeany.h.