Fortran SFF API to data I/O streams in C++
fapidxx::IFileUnits Class Reference

#include <fileunit.h>

Collaboration diagram for fapidxx::IFileUnits:

Classes

struct  IstreamCompound
 A C++ stream has to be handled together with an ianystream. More...
 

Public Member Functions

void close (const int &unit)
 close the file associated with this file unit More...
 
datrw::ianystream & getstream (const int &unit)
 return a stream associated with a file unit More...
 
 IFileUnits ()
 default contructor to initialize member data More...
 
bool isopen (const int &unit) const
 check whether a file is opened for this file unit More...
 
datrw::ianystream & open (const int &unit, const std::string &filename)
 open a new file More...
 
datrw::ianystream & operator() (const int &unit)
 quick access More...
 
void setformat (const std::string &format)
 set file format to be used upon file open More...
 
 ~IFileUnits ()
 destructor has to close all open files More...
 

Private Types

typedef std::map< int, IstreamCompoundTstreammap
 type of my ianystream container More...
 

Private Member Functions

 IFileUnits (const IFileUnits &ifu)
 do not allow copying More...
 
IFileUnitsoperator= (const IFileUnits &ifu)
 do not allow copying More...
 

Private Attributes

std::string Mformat
 file type to be used More...
 
Tstreammap Mstreammap
 place to hold my ianystream objects More...
 

Detailed Description

A class to provide us with an ianystream

Definition at line 55 of file fileunit.h.


The documentation for this class was generated from the following files: