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

◆ isproperlyfilled()

bool datrw::thiesdl1::File::isproperlyfilled ( const bool &  throwerrors = false) const

check whether container was properly filled

Parameters
throwerrorsif true, throws an error upon the first condition not properly set
Returns
true if instance contains meaningful and consistent data

Definition at line 301 of file thiesdl1file.cc.

References DATRW_assert, Mheader, Mreadsuccessfully, Mreadyforreading, and datrw::thiesdl1::FileHeader::readsuccessfully.

Referenced by reportfilled(), and wid2line().

302  {
303  if (throwerrors)
304  {
306  "No data was read into File structure");
308  "Header data not read successfully");
310  "Data not read successfully");
311  }
312  return((!Mreadyforreading)
314  } // bool File::isproperlyfilled(const bool& throwerrors=false) const
#define DATRW_assert(C, M)
Check an assertion and report by throwing an exception.
Definition: error.h:92
bool readsuccessfully
true if header data was read successfully
Definition: thiesdl1file.h:106
bool Mreadyforreading
is this container empty and ready for reading?
Definition: thiesdl1file.h:177
FileHeader Mheader
file header
Definition: thiesdl1file.h:181
bool Mreadsuccessfully
true if data was read successfully
Definition: thiesdl1file.h:179
Here is the caller graph for this function: