60     "usage: tfasciitest [-v] [-dseries] [-fseries] [-iseries] [-skip]" "\n"    61     "                   [-micsecs] filename" "\n"    62     "   or: tfasciitest --help" "\n"    68     "filename     file to read" "\n"    70     "-dseries     test reading a double series" "\n"    71     "-fseries     test reading a float series" "\n"    72     "-iseries     test reading a integer series" "\n"    73     "-skip        test to skip a series and read only the header data" "\n"    74     "-micsecs     test the output of the microseconds in the date values" "\n"    78   using namespace tfxx::cmdline;
    79   static Declare options[]= 
    86     {
"dseries",arg_no,
"-"},
    88     {
"fseries",arg_no,
"-"},
    90     {
"iseries",arg_no,
"-"},
    94     {
"micsecs",arg_no,
"-"},
   101     cerr << usage_text << endl;
   106   Commandline cmdline(iargc, argv, options);
   109   if (cmdline.optset(0))
   111     cerr << usage_text << endl;
   112     cerr << help_text << endl;
   121   opt.
skip=cmdline.optset(5);
   129   while (cmdline.extra()) 
   131     std::string infile=cmdline.next();
   132     std::ifstream ifs(infile.c_str());
   137       cout << 
"Reading file " << infile << endl; 
   140         cout << endl << 
"TEST: double reading" << endl; 
   144         cout << endl << 
"TEST: float reading" << endl;
   148         cout << endl << 
"TEST: integer reading" << endl;
   150       cout << 
"=====================" << endl; 
   153         cout << is.srce().line();
   156           cout << 
"Test micsecs in SRCE date: "    157             << is.srce().date.timestring() << endl;
   160       if (is.hasfree()) { is.free().write(cout); }
   165     if (opt.
skip) { is.skipseries(); } 
else   166     if (opt.
dseries) { is >> dseries; } 
else   167     if (opt.
fseries) { is >> fseries; } 
else   168     if (opt.
iseries) { is >> iseries; }
   173       cout << is.wid2().line();
   176         cout << 
"Test micsecs in WID2 date: "    177           << is.wid2().date.timestring() << endl;
   179       if (is.hasinfo()) { cout << is.info().line(); }
   180       if (is.hasfree()) { is.free().write(cout); }
   186         cout << 
"data:" << endl;
   187         for (
int isample=dseries.first(); isample<=dseries.last();
   190           cout << std::setprecision(7) << std::scientific << std::showpos
   191                << dseries(isample) << endl;
   196         cout << 
"data:" << endl;
   197         for (
int isample=fseries.first(); isample<=fseries.last();
   200           cout << std::setprecision(7) << std::scientific << std::showpos
   201                << fseries(isample) << endl;
   206         cout << 
"data:" << endl;
   207         for (
int isample=iseries.first(); isample<=iseries.last();
   210           cout << iseries(isample) << endl;
 
#define DATRW_assert(C, M)
Check an assertion and report by throwing an exception. 
input stream to read seismic data provided by T. Forbriger's any2ascii 
aff::Series< float > Tfseries
aff::Series< double > Tdseries
#define TFASCIITEST_VERSION
aff::Series< int > Tiseries