34 #define TF_FAPID_SFF_WOPENS_CC_VERSION \ 35 "TF_FAPID_SFF_WOPENS_CC V1.0 " 78 datrw::oanystream &os=
84 srce.cs=sff::coosysID(*cs);
85 srce.cx=
static_cast<double>(*c1);
86 srce.cy=
static_cast<double>(*c2);
87 srce.cz=
static_cast<double>(*c3);
89 srce.date=
SRCEdate(date, time, date_len, time_len);
This is the interface usually expected by Fortran programs linking to libsff.a (prototypes) ...
long int integer
Fortran integer type.
datrw::oanystream & open(const int &unit, const std::string &filename)
open a new file
libtime::TAbsoluteTime SRCEdate(char *date, char *time, ftnlen date_len, ftnlen time_len)
create appropriate time string for SRCE line
int sff_wopens__(integer *lu, char *filename, char *type__, char *cs, real *c1, real *c2, real *c3, char *date, char *time, integer *ierr, ftnlen filename_len, ftnlen type_len, ftnlen cs_len, ftnlen date_len, ftnlen time_len)
Open file for writing and pass SRCE line.
exceptions and error handling macros (prototypes)
float real
Fortran real type (single precision)
::fapidxx::OFileUnits ostreammanager
the global ostream manager
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)
some helper functions (prototypes)