Commit 3c05538d authored by thomas.forbriger's avatar thomas.forbriger
Browse files

libdatrwxx [TASK]: print online help in alphabetical order of formats

parent 08896492
......@@ -37,11 +37,12 @@
* - 19/11/2011 V1.7 make binary module visible
* - 05/12/2011 V1.8 provide format specfic online help
* - 23/07/2017 V1.9 report library version
* - 27/02/2019 V1.10 print list of formats in alphabetical order
*
* ============================================================================
*/
#define DATRW_FORMATS_CC_VERSION \
"DATRW_FORMATS_CC V1.9"
"DATRW_FORMATS_CC V1.10"
#include <datrwxx/aalibdatrwxx.h>
#include <datrwxx/formats.h>
......@@ -217,55 +218,57 @@ namespace datrw {
<< std::endl;
os << "--------------------------------------"
<< std::endl << std::endl;
online_help(Fsff, os);
online_help(Fascii, os);
online_help(Fbinary, os);
online_help(Fbonjer, os);
online_help(Fgse, os);
online_help(Fhpmo, os);
online_help(Fmseed, os);
online_help(Fpdas, os);
online_help(Fbonjer, os);
online_help(Fsac, os);
online_help(Fgse, os);
online_help(Ftsoft, os);
online_help(Ftfascii, os);
online_help(Fsu, os);
online_help(Fseife, os);
online_help(Fsff, os);
online_help(Fsu, os);
online_help(Ftfascii, os);
online_help(Fthiesdl1, os);
online_help(Fascii, os);
online_help(Fbinary, os);
online_help(Ftsoft, os);
datrw::formatmodifiers::online_help(os);
} // void online_help(std::ostream& os)
/*----------------------------------------------------------------------*/
inline void print_format_desc(std::ostream& os,
const char* ID, const char* desc)
{
os.width(13); os << ID << ": " << desc << std::endl;
} // inline void print_format_desc(std::ostream& os,
// const char* ID, const char* desc)
/*----------------------------------------------------------------------*/
void supported_input_data_types(std::ostream& os)
{
os << datrw::libversion << std::endl;
os << "data formats supported by ianystream:" << std::endl;
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.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.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.width(13); os << su::streamID << ": SeismicUn*x format" << std::endl;
os.width(13); os << seife::streamID
<< ": seife format (E. Wielandt)" << std::endl;
os.width(13); os << thiesdl1::streamID
<< ": Thies DL1 pluviometer data at BFO" << std::endl;
os.width(13); os << ascii::streamID
<< ": simple single column ASCII data" << std::endl;
os.width(13); os << binary::streamID
<< ": binary data" << std::endl;
print_format_desc(os, ascii::streamID,
"simple single column ASCII data");
print_format_desc(os, binary::streamID, "binary data");
print_format_desc(os, bonjer::streamID,
"K2 ASCII data format (defined by K. Bonjer?)");
print_format_desc(os, gse::streamID, "raw GSE format");
print_format_desc(os, hpmo::streamID,
"HP-MO data format defined by W. Grossmann (BFO)");
print_format_desc(os, mseed::streamID, "MiniSEED (SeisComP, EDL, etc.)");
print_format_desc(os, pdas::streamID, "PDAS100 (i.e. DaDisp)");
print_format_desc(os, sac::streamID, "SAC binary format");
print_format_desc(os, seife::streamID, "seife format (E. Wielandt)");
print_format_desc(os, sff::streamID, "Stuttgart File Format");
print_format_desc(os, su::streamID, "SeismicUn*x format");
print_format_desc(os, tfascii::streamID,
"ASCII format of T. Forbrigers any2ascii");
print_format_desc(os, thiesdl1::streamID,
"Thies DL1 pluviometer data at BFO");
print_format_desc(os, tsoft::streamID, "TSOFT format");
}
/*----------------------------------------------------------------------*/
......@@ -274,16 +277,12 @@ namespace datrw {
{
os << datrw::libversion << std::endl;
os << "data formats supported by oanystream:" << std::endl;
os.width(13); os << sff::streamID
<< ": Stuttgart File Format" << std::endl;
os.width(13); os << gse::streamID << ": raw GSE format" << std::endl;
os.width(13); os << su::streamID << ": SeismicUn*x format" << std::endl;
os.width(13); os << seife::streamID
<< ": seife format (E. Wielandt)" << std::endl;
os.width(13); os << ascii::streamID
<< ": simple single column ASCII data" << std::endl;
os.width(13); os << binary::streamID
<< ": binary data" << std::endl;
print_format_desc(os, ascii::streamID, "simple single column ASCII data");
print_format_desc(os, binary::streamID, "binary data");
print_format_desc(os, gse::streamID, "raw GSE format");
print_format_desc(os, seife::streamID, "seife format (E. Wielandt)");
print_format_desc(os, sff::streamID, "Stuttgart File Format");
print_format_desc(os, su::streamID, "SeismicUn*x format");
}
/*----------------------------------------------------------------------*/
......
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