Commit 621c6839 authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

anystream functions now use the static data fields

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/branches/libdatrwxx.su
SVN Revision: 3461
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 2f3b90ed
......@@ -134,23 +134,23 @@ namespace datrw {
Eformat anyID(const std::string& id)
{
Eformat retval;
if (id=="pdas")
if (id==pdas::streamID)
{ retval=Fpdas; }
else if (id=="sff")
else if (id==sff::streamID)
{ retval=Fsff; }
else if (id=="hpmo")
else if (id==hpmo::streamID)
{ retval=Fhpmo; }
else if (id=="mseed")
else if (id==mseed::streamID)
{ retval=Fmseed; }
else if (id=="bonjer")
else if (id==bonjer::streamID)
{ retval=Fbonjer; }
else if (id=="sac")
else if (id==sac::streamID)
{ retval=Fsac; }
else if (id=="gse")
else if (id==gse::streamID)
{ retval=Fgse; }
else if (id=="tsoft")
else if (id==tsoft::streamID)
{ retval=Ftsoft; }
else if (id=="tfascii")
else if (id==tfascii::streamID)
{ retval=Ftfascii; }
else { DATRW_abort("unknown data type identifier!"); }
return(retval);
......@@ -161,15 +161,15 @@ namespace datrw {
{
std::string retval="NSP";
switch(id) {
case Fpdas: retval="pdas"; break;
case Fsff: retval="sff"; break;
case Fhpmo: retval="hpmo"; break;
case Fmseed: retval="mseed"; break;
case Fbonjer: retval="bonjer"; break;
case Fsac: retval="sac"; break;
case Fgse: retval="gse"; break;
case Ftsoft: retval="tsoft"; break;
case Ftfascii: retval="tfascii"; break;
case Fpdas: retval=pdas::streamID; break;
case Fsff: retval=sff::streamID; break;
case Fhpmo: retval=hpmo::streamID; break;
case Fmseed: retval=mseed::streamID; break;
case Fbonjer: retval=bonjer::streamID; break;
case Fsac: retval=sac::streamID; break;
case Fgse: retval=gse::streamID; break;
case Ftsoft: retval=tsoft::streamID; break;
case Ftfascii: retval=tfascii::streamID; break;
default: DATRW_abort("unknown data type ID#!");
}
return(retval);
......@@ -181,17 +181,23 @@ namespace datrw {
void supported_data_types(std::ostream& os)
{
os << "data formats supported by ianystream:" << std::endl;
os << " sff: Stuttgart File Format" << std::endl;
os << " hpmo: HP-MO data format defined by W. Grossmann (BFO)"
os.width(13); os << sff::streamID
<< ": Stuttgart File Format" << std::endl;
os.width(13); os << hpmo::streamID
<< ": HP-MO data format defined by W. Grossmann (BFO)"
<< std::endl;
os << " pdas: PDAS100 (i.e. DaDisp)" << std::endl;
os << " mseed: MiniSEED (SeisComP, EDL, etc.)" << std::endl;
os << " bonjer: K2 ASCII data format (defined by K. Bonjer?)"
os.width(13); os << pdas::streamID
<< ": PDAS100 (i.e. DaDisp)" << std::endl;
os.width(13); os << mseed::streamID
<< ": MiniSEED (SeisComP, EDL, etc.)" << std::endl;
os.width(13); os << bonjer::streamID
<< ": K2 ASCII data format (defined by K. Bonjer?)"
<< std::endl;
os << " sac: SAC binary format" << std::endl;
os << " gse: raw GSE format" << std::endl;
os << " tsoft: TSOFT format" << std::endl;
os << " tfascii: ASCII format of T. Forbrigers any2ascii" << std::endl;
os.width(13); os << sac::streamID << ": SAC binary format" << std::endl;
os.width(13); os << gse::streamID << ": raw GSE format" << std::endl;
os.width(13); os << tsoft::streamID << ": TSOFT format" << std::endl;
os.width(13); os << tfascii::streamID
<< ": ASCII format of T. Forbrigers any2ascii" << std::endl;
os << DATRW_READANY_CC_CVSID << std::endl;
}
......
Markdown is supported
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