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

◆ getstream()

datrw::oanystream & fapidxx::OFileUnits::getstream ( const int &  unit)

return a stream associated with a file unit

Definition at line 183 of file fileunit.cc.

References FAPIDXX_fuassert, isopen(), and Mstreammap.

Referenced by open(), and operator()().

184  {
185  FAPIDXX_fuassert((this->isopen(unit)), unit,
186  "OFileUnits::getstream: file is not open");
187  return (*Mstreammap[unit].Moanystream);
188  } // datrw::oanystream& OFileUnits::getstream(const int& unit)
#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 oanystream objects
Definition: fileunit.h:132
bool isopen(const int &unit) const
check whether a file is opened for this file unit
Definition: fileunit.cc:174
Here is the call graph for this function:
Here is the caller graph for this function: