Fortran SFF API to data I/O streams in C++

◆ set()

void fapidxx::WID2container::WID2struct::set ( const ::sff::WID2 &  wid2)

set values from WID2

Definition at line 180 of file wid2container.cc.

References alen, auxid, calib, calper, channel, clen, day, dt, hang, hour, ID, idlen, ilen, instype, micsec, milsec, minute, month, nsamples, second, slen, station, vang, and year.

Referenced by fapidxx::WID2container::encodebinary().

181  {
183  strncpy(this->station, wid2.station.c_str(), slen);
184  strncpy(this->channel, wid2.channel.c_str(), clen);
185  strncpy(this->auxid, wid2.auxid.c_str(), alen);
186  strncpy(this->instype, wid2.instype.c_str(), ilen);
187  this->station[slen]='\0';
188  this->channel[clen]='\0';
189  this->auxid[alen]='\0';
190  this->instype[ilen]='\0';
191  this->hour=wid2.date.hour();
192  this->minute=wid2.date.minute();
193  this->second=wid2.date.second();
194  this->milsec=wid2.date.milsec();
195  this->micsec=wid2.date.micsec();
196  this->year=wid2.date.year();
197  this->month=wid2.date.month();
198  this->day=wid2.date.day();
199  this->calib=wid2.calib;
200  this->calper=wid2.calper;
201  this->dt=wid2.dt;
202  this->nsamples=wid2.nsamples;
203  this->vang=wid2.vang;
204  this->hang=wid2.hang;
205  } // void WID2container::WID2struct::set(const ::sff::WID2& wid2)
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)
sff::WID2 wid2
WID2 data.
libtime::timeint month
date of first sample (month value)
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)
static const unsigned short slen
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)
double calper
calibration reference period
double hang
horizontal orientation
char station[slen+1]
Station code.
libtime::timeint milsec
time of first sample (millisecond)
libtime::timeint second
time of first sample (second)
static const unsigned short idlen
Here is the caller graph for this function: