64 #define DATRW_MSEEDREAD_CC_VERSION \ 65 "DATRW_MSEEDREAD_CC V1.15" 70 #include <datrwxx/mseedread.h> 143 int slen=std::strlen(s);
144 slen = slen < 0 ? l : slen;
145 slen = slen < l ? slen : l;
146 return(std::string(s, slen));
155 Mblocksize(blocksize)
158 catch (std::bad_alloc) {
159 DATRW_abort(
"MiniSEEDblock: could not allocate memory!");
168 int milsec=int(
int(t.
tmilsec)/10);
169 int micsec=100*(int(t.
tmilsec)-milsec*10);
170 libtime::TAbsoluteTime retval(
int(t.
year), 1, 1,
172 int(milsec),
int(micsec));
173 retval.setdoy(
int(t.
doy));
181 const short int& srmult)
183 double fac1 = srate < 0 ? -double(srate) : 1./double(srate);
184 double fac2 = srmult < 0 ? -double(srmult) : 1./double(srmult);
204 bool retval=(filesex != mysex);
aff::Series< Tvalue > Theap
use aff shared heap to store and copy block
unsigned short int tmilsec
Ecpu_type cpu()
check for my CPU model
Ecpu_type
Define different CPU type that are recognized.
std::string extractstring(const char *s, const int &l)
Return a maximum of l characters.
double samplinginterval(const short int &srate, const short int &srmult)
calculate sampling interval from srate and smult
bool needswap(const unsigned char &bytesex)
check bytesex
A copy of bytesex.h from libtfxx (prototypes)
MiniSEEDblock(const unsigned int &blocksize=standard_block_size)
Root namespace of library.
libtime::TAbsoluteTime convert(const SEED::BTIME &t)
convert BTIME structure to libtime structure
unsigned int blocksize() const
#define DATRW_abort(M)
Abort and give a message.
provide mini-SEED data (prototypes)
SPARC or 68000 byte order.