35 #define TF_FAPID_SFF_RTRACEI_CC_VERSION \ 36 "TF_FAPID_SFF_RTRACEI_CC V1.0 " 100 datrw::Tfseries iseries;
103 "sff_rtracei__: too many samples");
104 int nsamples=iseries.size();
105 aff::LinearShape shape(0, nsamples-1, 0);
106 datrw::Tfseries series(shape, aff::SharedHeap<real>(fdata, *nsamp));
107 series.copyin(iseries);
108 *last = is.last() ? 1 : 0;
110 std::string ocode(
"");
111 if (is.hasfree()) { ocode.append(
"F"); }
112 if (is.hasinfo()) { ocode.append(
"I"); }
113 if (!is.last()) { ocode.append(
"D"); }
114 if (is.hasinfo()) { is >> info; }
117 *dt=
static_cast<real>(wid2.dt);
119 *nsamp=series.size();
120 char thecs=sff::coosysID(info.cs);
122 *c1=
static_cast<real>(info.cx);
123 *c2=
static_cast<real>(info.cy);
124 *c3=
static_cast<real>(info.cz);
125 *nstack=info.nstacks;
This is the interface usually expected by Fortran programs linking to libsff.a (prototypes) ...
long int integer
Fortran integer type.
void fillfstring(const std::string &s, char *fstring, ftnlen slen)
fill a Fortran string with a C++ string
exceptions and error handling macros (prototypes)
#define FAPIDXX_fuassert(C, U, M)
Check an assertion and report by throwing an exception.
int sff_rtracei__(integer *lu, real *tanf, real *dt, char *wid2line, integer *nsamp, real *fdata, integer *idata, char *code, logical *last, char *cs, real *c1, real *c2, real *c3, integer *nstack, integer *ierr, ftnlen wid2line_len, ftnlen code_len, ftnlen cs_len)
Read one trace of data and return INFO line additionally.
float real
Fortran real type (single precision)
long int logical
Fortran logical type.
long int ftnlen
Fortran string size type.
a file unit interface to libdatrwxx (prototypes)
float maketanf(const libtime::TAbsoluteTime &time)
create the tanf value
::fapidxx::IFileUnits istreammanager
the global istream manager
some helper functions (prototypes)
void close(const int &unit)
close the file associated with this file unit