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

◆ DATRW_assert

#define DATRW_assert (   C,
 
)    DATRW_Xassert( C , M , datrw::Exception )

Check an assertion and report by throwing an exception.

Parameters
Cassert condition
Mmessage (may use output operators; possibly containing newline characters)
Examples:
libdatrwxxtests.cc.

Definition at line 92 of file error.h.

Referenced by datrw::abort_if_exists(), datrw::su::ScalCoo::adjustscale(), datrw::sequentialtracereader::assertopen(), datrw::tsoft::channel(), datrw::hpmo::check_channel_no(), datrw::binary::checkfileflags(), datrw::tsoft::Datacontainer::checkindex(), datrw::binary::checktraceflags(), datrw::util::cpu(), datrw::tsoft::Dataline::Dataline(), datrw::itsoftstream::dseries(), datrw::util::seriesreservoir::dseries(), datrw::su::Coordinates::equalizescaling(), datrw::mseed::SEED::Steim2Word::extract(), datrw::su::fixscalevalue(), datrw::osffstream::flushwaitingtrace(), datrw::util::seriesreservoir::fseries(), datrw::ibinarystream::ibinarystream(), datrw::binary::ibinstream::ibinstream(), datrw::idatstream::idatstream(), datrw::su::SUheader::info(), datrw::igsestream::iseries(), datrw::util::seriesreservoir::iseries(), datrw::thiesdl1::File::isproperlyfilled(), datrw::su::SUheader::isultrasonic(), datrw::isustream::isustream(), main(), datrw::gse::next_wid2(), datrw::thiesdl1::FileHeader::nsamples(), datrw::odatstream::odatstream(), datrw::su::outputmodifiers(), datrw::binary::ibinstream::read(), datrw::ihpmostream::read(), datrw::tsoft::TSOFTfile::read(), datrw::thiesdl1::File::read(), datrw::seife::Header::read(), datrw::mseed::MiniSEEDRecord::read(), datrw::imseedstream::read(), datrw::sac::read_sac_data(), datrw::helper::readany(), datrw::util::readasciidouble(), datrw::hpmo::readdata(), datrw::tfascii::readfileheader(), datrw::isacstream::readheader(), datrw::isustream::readheader(), datrw::hpmo::Header::readheader(), datrw::thiesdl1::readheader(), datrw::mseed::MiniSEEDRecord::readheader(), datrw::pdas::readline(), datrw::tfascii::readtraceheader(), datrw::tsoft::reporttranslation(), datrw::tsoft::Dataline::sample(), datrw::tsoft::Datasequence::sample(), datrw::su::ScalCoo::scaletopower(), datrw::tsoft::schannelid(), datrw::sequentialtracereader::select(), datrw::seife::ParameterLine::set(), datrw::su::ScalCoo::set(), datrw::su::SUheader::set(), datrw::su::SUheader::settimes(), datrw::binary::ibinstream::skipdseries(), datrw::binary::ibinstream::skipfseries(), datrw::binary::ibinstream::skipiseries(), datrw::itsoftstream::skipseries(), datrw::su::SUheader::srce(), datrw::tsoft::tchannelid(), datrw::tsoft::Channeldata::trace(), datrw::tsoft::translate(), datrw::mseed::SEED::Steim2Word::value(), datrw::su::SUheader::wid2(), datrw::thiesdl1::FileHeader::wid2line(), datrw::thiesdl1::File::wid2line(), datrw::su::SUheader::write(), and datrw::odatstream::writeseries().