DATRW++ library: seismic data I/O with multiple formats

◆ writefileheader()

void datrw::osffstream::writefileheader ( )
protectedvirtual

actually write the file header

Reimplemented from datrw::odatstream.

Definition at line 110 of file osffstream.cc.

References DATRW_debug, datrw::odatstream::free(), datrw::odatstream::hasfree(), datrw::odatstream::hassrce(), datrw::odatstream::Mdebug, datrw::odatstream::Mos, and datrw::odatstream::srce().

111  {
112  DATRW_debug(Mdebug, "osffstream::writefileheader",
113  "write file header to file");
114  ::sff::FileHeader fileheader;
115  if (this->hassrce()) { fileheader.setsrce(this->srce()); }
116  if (this->hasfree()) { fileheader.setfree(this->free()); }
117  Mos << fileheader;
118  } // void osffstream::writefileheader()
bool hassrce() const
srce is available
Definition: datwrite.h:180
std::ostream & Mos
output stream to be used by this class
Definition: datwrite.h:194
sff::SRCE srce() const
return SRCE data
Definition: datwrite.h:171
sff::FREE free() const
return FREE data
Definition: datwrite.h:175
#define DATRW_debug(C, N, M)
produce debug output
Definition: debug.h:50
bool Mdebug
global debug flag
Definition: datwrite.h:197
bool hasfree() const
free is available
Definition: datwrite.h:184
Here is the call graph for this function: