35 #define TF_FAPID_SFF_WOPENFS_CC_VERSION \ 36 "TF_FAPID_SFF_WOPENFS_CC V1.0 " 88 datrw::oanystream &os=
94 srce.cs=sff::coosysID(*cs);
95 srce.cx=
static_cast<double>(*c1);
96 srce.cy=
static_cast<double>(*c2);
97 srce.cz=
static_cast<double>(*c3);
99 srce.date=
SRCEdate(date, time, date_len, time_len);
102 if (os.handlesfilefree())
104 sff::FREE filefree=
freeblock(nline, lines, lines_len);
int sff_wopenfs__(integer *lu, char *filename, char *lines, integer *nline, char *type__, char *cs, real *c1, real *c2, real *c3, char *date, char *time, integer *ierr, ftnlen filename_len, ftnlen lines_len, ftnlen type_len, ftnlen cs_len, ftnlen date_len, ftnlen time_len)
Open file for writing and pass FREE block and SRCE line.
This is the interface usually expected by Fortran programs linking to libsff.a (prototypes) ...
sff::FREE freeblock(integer *nline, char *lines, ftnlen lines_len)
create C++ FREE block from Fortran FREE lines
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
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)