Open SFF file.
c----------------------------------------------------------------------
subroutine sff_ROpen(lu, filename,
& version, timestamp, code, ierr)
c
c Open file for reading. Read STAT line.
c
c input:
c filename name of file
c ouput:
c version version of writing library
c timestamp time and date file was written
c code indicates optional blocks
c ierr error status (ok: ierr=0)
c
character timestamp*(*), code *(*)
character filename*(*)
c----------------------------------------------------------------------
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);
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)
datrw::ianystream & open(const int &unit, const std::string &filename)
open a new file
std::string stringfromfstring(char *fstring, ftnlen slen)
create a C++ string from a Fortran string
::fapidxx::IFileUnits istreammanager
the global istream manager