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

◆ check_channel_no()

void datrw::hpmo::check_channel_no ( const int &  ichannel)

check if channel number is valid

Definition at line 101 of file readhpmo.cc.

References DATRW_assert, and nchannels.

102  {
103  DATRW_assert(((ichannel > 0) && (ichannel <= nchannels)),
104  "illegal channel number!");
105  } // void check_channel_no(const int& ichannel)
#define DATRW_assert(C, M)
Check an assertion and report by throwing an exception.
Definition: error.h:92
const int nchannels
number of channels in HP MO data acquisition system
Definition: hpmodata.h:49