Commit 839863f4 authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

string extraction

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 2067
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 0c371907
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: seedstructdump.cc,v 1.10 2006-04-04 10:02:21 tforb Exp $
* $Id: seedstructdump.cc,v 1.11 2006-04-04 10:02:57 tforb Exp $
* \author Thomas Forbriger
* \date 15/03/2006
*
......@@ -35,7 +35,7 @@
#define TF_SEEDSTRUCTDUMP_CC_VERSION \
"TF_SEEDSTRUCTDUMP_CC V1.0 "
#define TF_SEEDSTRUCTDUMP_CC_CVSID \
"$Id: seedstructdump.cc,v 1.10 2006-04-04 10:02:21 tforb Exp $"
"$Id: seedstructdump.cc,v 1.11 2006-04-04 10:02:57 tforb Exp $"
#include<string>
#include<iomanip>
......@@ -149,13 +149,13 @@ namespace datread {
os << "Fixed Data Record Header:" << std::endl;
dump(s.controlheader, os);
util::print_field_name("station identifier code", os);
os << util::extractstring(s.stat, 5) << std::endl;
os << datread::mseed::util::extractstring(s.stat, 5) << std::endl;
util::print_field_name("location identifier", os);
os << util::extractstring(s.loc, 2) << std::endl;
os << datread::mseed::util::extractstring(s.loc, 2) << std::endl;
util::print_field_name("channel identifier", os);
os << util::extractstring(s.chan, 3) << std::endl;
os << datread::mseed::util::extractstring(s.chan, 3) << std::endl;
util::print_field_name("network code", os);
os << util::extractstring(s.net, 2) << std::endl;
os << datread::mseed::util::extractstring(s.net, 2) << std::endl;
util::print_field_name("record start time", os);
os << convert(s.stime).timestring() << std::endl;
util::print_field_name("number of samples", os);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment