36 #define TF_MSEEDREAD_MSEEDRECORD_READHEADER_CC_VERSION \ 37 "TF_MSEEDREAD_MSEEDRECORD_READHEADER_CC V1.0" 42 #include <datrwxx/mseedread.h> 45 #include<aff/subarray.h> 88 bool nodataheader=
true;
89 while (nodataheader && is.good()) {
92 if ((controlheader.type ==
'D')
93 || (controlheader.type ==
'R')
94 || (controlheader.type ==
'Q')
95 || (controlheader.type ==
'M'))
96 { nodataheader=
false; }
110 bool seriesheader=
false;
111 while ((!seriesheader) && is.good())
120 "ERROR (reading MiniSEED record): " 121 "cannot identify CPU type");
132 "ERROR (reading MiniSEED record): " 133 "cannot find first blockette");
140 bh(block.
block(blocketteadr), doswap);
147 else if (bh.type == 1001)
153 blocketteadr=bh.next;
156 "ERROR (reading MiniSEED record): " 157 "Data Only SEED Blockette is essential");
160 "ERROR (reading MiniSEED record): " 161 "swapping is not consistent");
170 std::cout << this->
date().hierarchicalstring() <<
" ASCII data block:" 174 while ((bytecount < totalreclen) && is.good())
184 char c=block[pframe];
196 std::cout << std::endl <<
">>";
205 std::cout << std::endl;
217 if (is.good()) {
Mvalid=
true; }
#define DATRW_assert(C, M)
Check an assertion and report by throwing an exception.
MiniSEEDblock readheader(std::istream &is)
read header and return block
SEED::DataExtensionBlockette Mblockette1001
Data Extension Blockette.
Ecpu_type cpu()
check for my CPU model
unsigned int bytesize() const
Ecpu_type
Define different CPU type that are recognized.
bool Mhasblockette1001
Data Extension Blockette is present.
bool needswap(const unsigned char &bytesex)
check bytesex
A copy of bytesex.h from libtfxx (prototypes)
Root namespace of library.
bool Mhasblockette1000
Data Only SEED Blockette is present.
SEED::FixedDataRecordHeader Mrecordheader
Fixed Data Record Header.
unsigned char format
Encoding Format.
libtime::TAbsoluteTime date() const
return time of first sample
provide mini-SEED data (prototypes)
bool report_ascii_data_to_stdout
report ASCII lines
SEED::DataOnlySEEDBlockette Mblockette1000
Data Only SEED Blockette.
Debug Mdebug
debug options
bool Mvalid
contains valid data
unsigned char bytesex
Word order.
unsigned int reclenbytes() const