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

class to write SFF data More...

#include <sff.h>

Inheritance diagram for datrw::osffstream:
Collaboration diagram for datrw::osffstream:

Public Types

typedef odatstream Tbase
 

Public Member Functions

 osffstream (std::ostream &os, const std::string &modifier="", const bool &debug=false)
 
virtual ~osffstream ()
 
bool debug ()
 indicate debug mode More...
 
void debug (const bool &debug)
 set debug mode More...
 
void flushfileheader ()
 flush file header to file More...
 
bool handlesfilefree () const
 true if file FREE block can be handled More...
 
bool handlesinfo () const
 true if INFO data can be handled More...
 
bool handlessrce () const
 true if SRCE data can be handled More...
 
bool handlestracefree () const
 true if trace FREE block can be handled More...
 
Properties properties () const
 query properties More...
 
Edatatype seriestype () const
 
void setfree (const sff::FREE &free)
 
void setinfo (const sff::INFO &info)
 
void setsrce (const sff::SRCE &srce)
 
void setwid2 (const sff::WID2 &wid2)
 
void writeseries (const Tdseries::Tcoc &series)
 write double data More...
 
void writeseries (const Tfseries::Tcoc &series)
 write single precision float data More...
 
void writeseries (const Tiseries::Tcoc &series)
 write integer data More...
 

Static Public Member Functions

static void help (std::ostream &os=std::cout)
 
static void help (std::ostream &os=std::cout, const char *name="idatsream")
 print some info about data conversion. More...
 

Static Public Attributes

static const std::ios_base::openmode openmode =std::ios_base::out
 

Protected Member Functions

void cleartraceheader ()
 clear trace header flags More...
 
sff::FREE free () const
 return FREE data More...
 
bool hasfree () const
 free is available More...
 
bool hasinfo () const
 info is available More...
 
bool hassrce () const
 srce is available More...
 
bool haswid2 () const
 wid2 is available More...
 
sff::INFO info () const
 return SRCE data More...
 
void setdatatype (const Edatatype &daty)
 
sff::SRCE srce () const
 return SRCE data More...
 
sff::WID2 wid2 () const
 return WID2 data More...
 
virtual void writefileheader ()
 actually write the file header More...
 
virtual void writetrace (const Tdseries::Tcoc &series)
 write double data More...
 
virtual void writetrace (const Tfseries::Tcoc &series)
 write single precision float data More...
 
virtual void writetrace (const Tiseries::Tcoc &series)
 write integer data More...
 

Protected Attributes

bool Mdebug
 global debug flag More...
 
::sff::Enormmode Mnormmode
 
std::ostream & Mos
 output stream to be used by this class More...
 

Private Member Functions

void flushwaitingtrace (const bool &last=false)
 

Private Attributes

bool Mfreeiswaiting
 
::sff::FREE Mfreewaiting
 
bool Minfoiswaiting
 
::sff::INFO Minfowaiting
 
datrw::util::seriesreservoir Mserieswaiting
 
bool Mwid2iswaiting
 
::sff::WID2 Mwid2waiting
 

Detailed Description

class to write SFF data

Examples:
writetest.cc.

Definition at line 98 of file sff.h.


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