Fortran SFF API to data I/O streams in C++
fapidxx::WID2container::WID2struct Struct Reference

This struct ist used by fapidxx::WID2container to store WID2 line data. More...

#include <wid2container.h>

Collaboration diagram for fapidxx::WID2container::WID2struct:

Public Member Functions

::sff::WID2 get () const
 return values to WID2 More...
 
void set (const ::sff::WID2 &wid2)
 set values from WID2 More...
 

Public Attributes

char auxid [alen+1]
 Auxiliary identification code. More...
 
double calib
 calibration factor More...
 
double calper
 calibration reference period More...
 
char channel [clen+1]
 FDSN channel code. More...
 
libtime::timeint day
 date of first sample (day value) More...
 
double dt
 sampling interval (sec) More...
 
double hang
 horizontal orientation More...
 
libtime::timeint hour
 time of first sample (hour) More...
 
char ID [idlen]
 ID string. More...
 
char instype [ilen+1]
 instrument type More...
 
libtime::timeint micsec
 time of first sample (microsecond) More...
 
libtime::timeint milsec
 time of first sample (millisecond) More...
 
libtime::timeint minute
 time of first sample (minute) More...
 
libtime::timeint month
 date of first sample (month value) More...
 
int nsamples
 number of samples More...
 
libtime::timeint second
 time of first sample (second) More...
 
char station [slen+1]
 Station code. More...
 
double vang
 veritcal orientation More...
 
libtime::timeint year
 date of first sample (year value) More...
 

Static Public Attributes

static const unsigned short alen =4
 
static const unsigned short clen =3
 
static const char * encodeID ="WIDY"
 ID indicating the WID2 is encoded in binary form in the WID2 line. More...
 
static const unsigned short idlen =4
 
static const unsigned short ilen =6
 
static const unsigned short slen =5
 

Detailed Description

This struct ist used by fapidxx::WID2container to store WID2 line data.

The WID2::struct member data is written in binary for (memcpy) to the WID2 line Fortran string.

See also
How WID2 data is handled internally

The WID2struct member data comprises:

item size total size
ID4 bytes4 bytes
date8*4 bytes32 bytes
1 int4 bytes4 bytes
5 double5*4 bytes20 bytes
character sequences22 bytes
station6 bytes
channel4 bytes
auxid5 bytes
instype7 bytes
total82 bytes

Two member functions are provided to fill data member field with WID2 data from an ::sff::WID2 struct or to pass WID2 data from this struct to an ::sff::WID2 struct:

Definition at line 106 of file wid2container.h.


The documentation for this struct was generated from the following files: