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

◆ dump() [7/15]

void datrw::mseed::SEED::dump ( const FixedDataRecordHeader s,
std::ostream &  os 
)

Definition at line 144 of file seedstructdump.cc.

References datrw::mseed::SEED::FixedDataRecordHeader::aflags, datrw::mseed::SEED::FixedDataRecordHeader::chan, datrw::mseed::SEED::FixedDataRecordHeader::controlheader, datrw::mseed::convert(), datrw::mseed::SEED::FixedDataRecordHeader::dbeg, dump(), dump_aflags(), dump_ioflags(), dump_qflags(), datrw::mseed::util::extractstring(), datrw::mseed::SEED::FixedDataRecordHeader::fblock, datrw::mseed::SEED::FixedDataRecordHeader::ioflags, datrw::mseed::SEED::FixedDataRecordHeader::loc, datrw::mseed::SEED::FixedDataRecordHeader::net, datrw::mseed::SEED::FixedDataRecordHeader::nsamp, datrw::mseed::SEED::FixedDataRecordHeader::numblock, datrw::mseed::SEED::util::print_field_name(), datrw::mseed::SEED::util::print_hex(), datrw::mseed::SEED::FixedDataRecordHeader::qflags, datrw::mseed::SEED::FixedDataRecordHeader::srate, datrw::mseed::SEED::FixedDataRecordHeader::srmult, datrw::mseed::SEED::FixedDataRecordHeader::stat, datrw::mseed::SEED::FixedDataRecordHeader::stime, and datrw::mseed::SEED::FixedDataRecordHeader::tcorr.

145  {
146  os << "Fixed Data Record Header:" << std::endl;
147  dump(s.controlheader, os);
148  util::print_field_name("station identifier code", os);
149  os << datrw::mseed::util::extractstring(s.stat, 5) << std::endl;
150  util::print_field_name("location identifier", os);
151  os << datrw::mseed::util::extractstring(s.loc, 2) << std::endl;
152  util::print_field_name("channel identifier", os);
153  os << datrw::mseed::util::extractstring(s.chan, 3) << std::endl;
154  util::print_field_name("network code", os);
155  os << datrw::mseed::util::extractstring(s.net, 2) << std::endl;
156  util::print_field_name("record start time", os);
157  os << convert(s.stime).timestring() << std::endl;
158  util::print_field_name("number of samples", os);
159  os << s.nsamp << std::endl;
160  util::print_field_name("sample rate factor", os);
161  os << s.srate << std::endl;
162  util::print_field_name("sample rate multiplier", os);
163  os << s.srmult << std::endl;
164  util::print_field_name("activity flags", os);
165  util::print_hex(s.aflags, os);
166  os << std::endl;
167  dump_aflags(s.aflags, os);
168  util::print_field_name("i/o and clock flags", os);
169  util::print_hex(s.ioflags, os);
170  os << std::endl;
171  dump_ioflags(s.ioflags, os);
172  util::print_field_name("data quality flags", os);
173  util::print_hex(s.qflags, os);
174  os << std::endl;
175  dump_qflags(s.qflags, os);
176  util::print_field_name("number of blockettes", os);
177  os << int(s.numblock) << std::endl;
178  util::print_field_name("time correction", os);
179  os << s.tcorr << std::endl;
180  util::print_field_name("beginning of data", os);
181  util::print_hex(s.dbeg, os);
182  os << std::endl;
183  util::print_field_name("first blockette", os);
184  util::print_hex(s.fblock, os);
185  os << std::endl;
186  } // void dump(const FixedDataRecordHeader& s, std::ostream& os)
void dump_aflags(const unsigned char &s, std::ostream &os)
void dump_ioflags(const unsigned char &s, std::ostream &os)
std::string extractstring(const char *s, const int &l)
Return a maximum of l characters.
Definition: mseedread.cc:141
void print_field_name(const char *f, std::ostream &os)
libtime::TAbsoluteTime convert(const SEED::BTIME &t)
convert BTIME structure to libtime structure
Definition: mseedread.cc:166
void dump_qflags(const unsigned char &s, std::ostream &os)
void print_hex(const unsigned short int &f, std::ostream &os)
void dump(SteimFrame &f, std::ostream &os)
Here is the call graph for this function: