35 #define TF_FAPID_SFF_RTRACE_CC_VERSION \ 36 "TF_FAPID_SFF_RTRACE_CC V1.0 " 94 datrw::Tfseries iseries;
97 "sff_rtracei__: too many samples");
98 int nsamples=iseries.size();
99 aff::LinearShape shape(0, nsamples-1, 0);
100 datrw::Tfseries series(shape, aff::SharedHeap<real>(fdata, *nsamp));
101 series.copyin(iseries);
102 *last = is.last() ? 1 : 0;
104 std::string ocode(
"");
105 if (is.hasfree()) { ocode.append(
"F"); }
106 if (is.hasinfo()) { ocode.append(
"I"); }
107 if (!is.last()) { ocode.append(
"D"); }
110 *dt=
static_cast<real>(wid2.dt);
112 *nsamp=series.size();
This is the interface usually expected by Fortran programs linking to libsff.a (prototypes) ...
long int integer
Fortran integer type.
int sff_rtrace__(integer *lu, real *tanf, real *dt, char *wid2line, integer *nsamp, real *fdata, integer *idata, char *code, logical *last, integer *ierr, ftnlen wid2line_len, ftnlen code_len)
Read one trace of data.
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.
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)