36 #ifndef TF_WID2CONTAINER_H_VERSION 38 #define TF_WID2CONTAINER_H_VERSION \ 39 "TF_WID2CONTAINER_H V1.0 " 109 static const unsigned short idlen=4;
110 static const unsigned short slen=5;
111 static const unsigned short clen=3;
112 static const unsigned short alen=4;
113 static const unsigned short ilen=6;
136 void set(const ::sff::WID2&
wid2);
138 ::sff::WID2
get()
const;
150 void setwid2(
const std::string& line);
167 #endif // TF_WID2CONTAINER_H_VERSION (includeguard) void encodeascii(char *fstring, ftnlen slen) const
encode data into a standard SFF character string
static const unsigned short ilen
char channel[clen+1]
FDSN channel code.
char instype[ilen+1]
instrument type
double dt
sampling interval (sec)
double calib
calibration factor
libtime::timeint micsec
time of first sample (microsecond)
void setwid2(const std::string &line)
fill data fields from a conventional WID2 line
libtime::timeint month
date of first sample (month value)
This struct is used to pass WID2 line data within libfapidxx.
libtime::timeint day
date of first sample (day value)
double vang
veritcal orientation
static const char * encodeID
ID indicating the WID2 is encoded in binary form in the WID2 line.
libtime::timeint year
date of first sample (year value)
WID2container(const std::string &line)
construct from C++ string
void encodebinary(char *fstring, ftnlen slen) const
encode data into a binary character string
WID2container(const ::sff::WID2 &iwid2)
construct from an SFF WID2 container
static const unsigned short slen
bool wasascii
true, if original data was ASCII encoded
char auxid[alen+1]
Auxiliary identification code.
int nsamples
number of samples
static const unsigned short clen
static const unsigned short alen
libtime::timeint hour
time of first sample (hour)
libtime::timeint minute
time of first sample (minute)
long int ftnlen
Fortran string size type.
double calper
calibration reference period
double hang
horizontal orientation
WID2container(char *fstring, ftnlen slen)
construct from Fortran character sequence
char station[slen+1]
Station code.
void encode(char *fstring, ftnlen slen) const
encode data into a character string depending on wasascii flag
This struct ist used by fapidxx::WID2container to store WID2 line data.
libtime::timeint milsec
time of first sample (millisecond)
libtime::timeint second
time of first sample (second)
static const unsigned short idlen