40 #ifndef TF_FILEUNIT_H_VERSION 42 #define TF_FILEUNIT_H_VERSION \ 48 #include<datrwxx/readany.h> 49 #include<datrwxx/writeany.h> 62 datrw::ianystream&
open(
const int& unit,
63 const std::string& filename);
65 datrw::ianystream&
getstream(
const int& unit);
67 bool isopen(
const int& unit)
const;
69 void close(
const int& unit);
71 void setformat(
const std::string& format);
104 datrw::oanystream&
open(
const int& unit,
105 const std::string& filename);
107 datrw::oanystream&
getstream(
const int& unit);
109 bool isopen(
const int& unit)
const;
111 void close(
const int& unit);
113 void setformat(
const std::string& format);
145 #endif // TF_FILEUNIT_H_VERSION (includeguard) std::map< int, OstreamCompound > Tstreammap
type of my oanystream container
datrw::ianystream & operator()(const int &unit)
quick access
datrw::oanystream * Moanystream
bool isopen(const int &unit) const
check whether a file is opened for this file unit
OFileUnits & operator=(const OFileUnits &ifu)
do not allow copying
datrw::ianystream * Mianystream
void setformat(const std::string &format)
set file format to be used upon file open
datrw::oanystream & open(const int &unit, const std::string &filename)
open a new file
Tstreammap Mstreammap
place to hold my oanystream objects
~OFileUnits()
destructor has to close all open files
std::map< int, IstreamCompound > Tstreammap
type of my ianystream container
void setformat(const std::string &format)
set file format to be used upon file open
::fapidxx::OFileUnits ostreammanager
the global ostream manager
datrw::oanystream & operator()(const int &unit)
quick access
datrw::ianystream & open(const int &unit, const std::string &filename)
open a new file
Tstreammap Mstreammap
place to hold my ianystream objects
OFileUnits()
default contructor to initialize member data
bool isopen(const int &unit) const
check whether a file is opened for this file unit
IFileUnits()
default contructor to initialize member data
std::string Mformat
file type to be used
A C++ stream has to be handled together with an ianystream.
datrw::ianystream & getstream(const int &unit)
return a stream associated with a file unit
~IFileUnits()
destructor has to close all open files
IFileUnits & operator=(const IFileUnits &ifu)
do not allow copying
datrw::oanystream & getstream(const int &unit)
return a stream associated with a file unit
void close(const int &unit)
close the file associated with this file unit
std::string Mformat
file type to be used
::fapidxx::IFileUnits istreammanager
the global istream manager
A C++ stream has to be handled together with an oanystream.
void close(const int &unit)
close the file associated with this file unit