35 #define TF_FAPID_SFF_ROPEN_CC_VERSION \ 36 "TF_FAPID_SFF_ROPEN_CC V1.0 " 80 datrw::ianystream &is=
83 std::string ocode(
"");
84 if (is.hasfree()) { ocode.append(
"F"); }
85 if (is.hassrce()) { ocode.append(
"S"); }
90 fillfstring(stat.timestamp, timestamp, timestamp_len);
91 *version=
static_cast<real>(sff::STAT::libversion);
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
float real
Fortran real type (single precision)
int sff_ropen__(integer *lu, char *filename, real *version, char *timestamp, char *code, integer *ierr, ftnlen filename_len, ftnlen timestamp_len, ftnlen code_len)
Open SFF file.
datrw::ianystream & open(const int &unit, const std::string &filename)
open a new file
long int ftnlen
Fortran string size type.
std::string stringfromfstring(char *fstring, ftnlen slen)
create a C++ string from a Fortran string
a file unit interface to libdatrwxx (prototypes)
::fapidxx::IFileUnits istreammanager
the global istream manager
some helper functions (prototypes)