Fortran SFF API to data I/O streams in C++

◆ close()

void fapidxx::IFileUnits::close ( const int &  unit)

close the file associated with this file unit

Definition at line 91 of file fileunit.cc.

References FAPIDXX_fuassert, isopen(), fapidxx::IFileUnits::IstreamCompound::Mianystream, fapidxx::IFileUnits::IstreamCompound::Mistream, and Mstreammap.

Referenced by sff_close__(), sff_rtracei__(), sff_skipdata__(), and ~IFileUnits().

92  {
93  FAPIDXX_fuassert((this->isopen(unit)), unit,
94  "IFileUnits::close: file is not open");
95  IstreamCompound &compound=Mstreammap[unit];
96  delete compound.Mianystream;
97  delete compound.Mistream;
98  Mstreammap.erase(unit);
99  } // void IFileUnits::close(const int& unit)
bool isopen(const int &unit) const
check whether a file is opened for this file unit
Definition: fileunit.cc:103
#define FAPIDXX_fuassert(C, U, M)
Check an assertion and report by throwing an exception.
Definition: error.h:205
Tstreammap Mstreammap
place to hold my ianystream objects
Definition: fileunit.h:90
Here is the call graph for this function:
Here is the caller graph for this function: