Inline class used to make a cleaner interface the ugly libmseed function for dealing with what they call an "sid".
| mspass::io::MSEED_sid::MSEED_sid |
( |
const char * |
sid | ) |
|
Constructor for this class.
Just copies c strings to std::strings in the class. Throws a simple int exception if the libmseed parser returns an error. This could be improved if I could make sense of the error logger by retrieving the message this obnoxious function posts to its error log.
89 {
91
92
93 if (ms_sid2nslc(
const_cast<char *
>(sid),
net,
sta,
loc,
chan) == 0) {
94 this->net = string(
net);
95 this->sta = string(
sta);
96 this->chan = string(
chan);
97 this->loc = string(
loc);
98 } else {
99 throw 1;
100 }
101}
References chan, loc, net, and sta.