file_stream Class Reference

#include <fstream.hpp>

Inheritance diagram for file_stream:

Inheritance graph
[legend]
Collaboration diagram for file_stream:

Collaboration graph
[legend]

List of all members.


Detailed Description

Base class for streams on a file.

Definition at line 61 of file fstream.hpp.


Public Member Functions

 file_stream (const gsgl::string &fname, gsgl::flags_t mode=FILE_OPEN_READ)
const gsgl::stringget_fname () const
virtual ~file_stream ()

Protected Member Functions

bool at_end () const
 file_stream (void *fp, gsgl::flags_t mode)

Protected Attributes

gsgl::string fname
void * fp
int mode

Constructor & Destructor Documentation

file_stream ( void *  fp,
gsgl::flags_t  mode 
) [protected]

Definition at line 56 of file fstream.cpp.

file_stream ( const gsgl::string fname,
gsgl::flags_t  mode = FILE_OPEN_READ 
)

~file_stream (  )  [virtual]

Definition at line 114 of file fstream.cpp.

References file_stream::fp.


Member Function Documentation

bool at_end (  )  const [protected]

Reimplemented in ft_stream, and fd_stream.

Definition at line 121 of file fstream.cpp.

References file_stream::fp.

Referenced by fd_stream::at_end(), and ft_stream::at_end().

const gsgl::string& get_fname (  )  const [inline]

Definition at line 78 of file fstream.hpp.

Referenced by file_log_target::~file_log_target().


Member Data Documentation

gsgl::string fname [protected]

Definition at line 65 of file fstream.hpp.

Referenced by ft_stream::peek().

void* fp [protected]

int mode [protected]


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

Generated on Sat Mar 1 13:50:06 2008 for Periapsis Project by  doxygen 1.5.5