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

◆ getstream()

datrw::ianystream & fapidxx::IFileUnits::getstream ( const int &  unit)

return a stream associated with a file unit

Definition at line 112 of file fileunit.cc.

References FAPIDXX_fuassert, isopen(), and Mstreammap.

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

113  {
114  FAPIDXX_fuassert((this->isopen(unit)), unit,
115  "IFileUnits::getstream: file is not open");
116  return (*Mstreammap[unit].Mianystream);
117  } // datrw::ianystream& IFileUnits::getstream(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: