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

◆ set_fileheader()

void datrw::itfasciistream::set_fileheader ( )
private

set the file header data

Definition at line 101 of file itfasciistream.cc.

References datrw::tfascii::FileHeader::filefree, get_verbose(), datrw::tfascii::FileHeader::hasfilefree, datrw::tfascii::FileHeader::hassrce, datrw::idatstream::Mis, datrw::tfascii::readfileheader(), datrw::idatstream::setfilefree(), datrw::idatstream::setsrce(), and datrw::tfascii::FileHeader::srce.

Referenced by itfasciistream().

101  {
102  tfascii::FileHeader fileheader = tfascii::readfileheader(Mis,
103  get_verbose());
104  if (fileheader.hasfilefree)
105  {
106  this->setfilefree(fileheader.filefree);
107  }
108  if (fileheader.hassrce)
109  {
110  this->setsrce(fileheader.srce);
111  }
112  } // function itfasciistream::set_fileheader
FileHeader readfileheader(std::istream &is, const bool &verbose)
read the complete fileheader
Definition: readtfascii.cc:78
void setfilefree(const sff::FREE &free)
Definition: datread.cc:97
void setsrce(const sff::SRCE &srce)
Definition: datread.cc:129
std::istream & Mis
Definition: datread.h:126
bool get_verbose() const
member function
Here is the call graph for this function:
Here is the caller graph for this function: