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

◆ test_line_functions()

void test_line_functions ( )

Definition at line 86 of file sfftest.cc.

References sff::WID2::channel, sff::WID2::dt, sff::WID2::instype, sff::STAT::line(), sff::SRCE::line(), sff::DAST::line(), sff::INFO::line(), sff::WID2::line(), sff::FREE::lines, sff::WID2::nsamples, sff::WID2::station, and sff::FREE::write().

Referenced by main().

87 {
88  cout << "test line functions" << endl
89  << "-------------------" << endl;
90 
91  sff::STAT mystat;
92  cout << mystat.line();
93  cout << endl;
94 
95  sff::SRCE mysrce;
96  cout << mysrce.line();
97  cout << endl;
98 
99  sff::DAST mydast;
100  cout << mydast.line();
101  cout << endl;
102 
103  sff::INFO myinfo;
104  cout << myinfo.line();
105  cout << endl;
106 
107  sff::WID2 mywid2;
108  cout << mywid2.line();
109  mywid2.station="BFO";
110  mywid2.channel="UGZ";
111  mywid2.instype="ET-19";
112  mywid2.nsamples=2048;
113  mywid2.dt=10.;
114  cout << mywid2.line();
115  cout << endl;
116 
117  sff::FREE myfree;
118  myfree.lines.push_back("Hi there!");
119  myfree.lines.push_back("A second free line");
120  myfree.write(cout);
121  cout << endl;
122 
123 } // test_line_functions()
std::string line() const
Definition: sffxx.cc:493
void write(std::ostream &os) const
Definition: sffxx.cc:565
std::string line() const
Definition: sffxx.cc:357
Tlines lines
Definition: sffxx.h:163
std::string line() const
Definition: sffxx.cc:754
std::string line() const
Definition: sffxx.cc:657
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
std::string line() const
Definition: sffxx.cc:218
Here is the call graph for this function:
Here is the caller graph for this function: