SFF++ library: reading and writing SFF from C++

◆ test_verbose_functions()

void test_verbose_functions ( )

Definition at line 127 of file sfftest.cc.

References sff::WID2::channel, sff::WID2::dt, sff::WID2::instype, sff::FREE::lines, sff::WID2::nsamples, sff::WID2::station, and sff::verbose().

Referenced by main().

128 {
129  cout << "test verbose functions" << endl
130  << "----------------------" << endl;
131 
132  sff::STAT mystat;
133  sff::verbose(cout, mystat);
134 
135  sff::SRCE mysrce;
136  sff::verbose(cout, mysrce);
137 
138  sff::DAST mydast;
139  sff::verbose(cout, mydast);
140 
141  sff::INFO myinfo;
142  sff::verbose(cout, myinfo);
143 
144  sff::WID2 mywid2;
145  sff::verbose(cout, mywid2);
146  mywid2.station="BFO";
147  mywid2.channel="UGZ";
148  mywid2.instype="ET-19";
149  mywid2.nsamples=2048;
150  mywid2.dt=10.;
151  sff::verbose(cout, mywid2);
152 
153  sff::FREE myfree;
154  myfree.lines.push_back("Hi there!");
155  myfree.lines.push_back("A second free line");
156  sff::verbose(cout, myfree);
157 
158  sff::TraceHeader myth;
159  sff::verbose(cout, myth);
160 
161  sff::FileHeader myfh;
162  sff::verbose(cout, myfh);
163 
164 } // test_verbose_functions()
SFF trace header elements.
Definition: sffxx.h:282
Tlines lines
Definition: sffxx.h:163
std::string station
Station code.
Definition: sffxx.h:216
std::string instype
instrument type
Definition: sffxx.h:223
std::string channel
FDSN channel code.
Definition: sffxx.h:217
int nsamples
number of samples
Definition: sffxx.h:219
Waveform Header.
Definition: sffxx.h:209
double dt
sampling interval (sec)
Definition: sffxx.h:220
SFF file header elements.
Definition: sffxx.h:232
void verbose(std::ostream &os, const WID2 &wid2)
Definition: sffverbose.cc:93
Here is the call graph for this function:
Here is the caller graph for this function: