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

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

#include <writeany.h>

Collaboration diagram for datrw::oanystream:

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::odatstreamodatstream ()
 

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...
 
oanystreamoperator= (const oanystream &)
 no copy More...
 

Private Attributes

datrw::Eformat Mformat
 
datrw::odatstreamMos
 

Detailed Description

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.

Examples:
writetest.cc.

Definition at line 75 of file writeany.h.


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