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.
87 {
89
90
91 if (ms_sid2nslc(
const_cast<char *
>(sid),
net,
sta,
loc,
chan) == 0) {
92 this->net = string(
net);
93 this->sta = string(
sta);
94 this->chan = string(
chan);
95 this->loc = string(
loc);
96 } else {
97 throw 1;
98 }
99}
References chan, loc, net, and sta.