fd_stream Class Reference

#include <fstream.hpp>

Inheritance diagram for fd_stream:

Inheritance graph
[legend]
Collaboration diagram for fd_stream:

Collaboration graph
[legend]

List of all members.


Detailed Description

A data stream on a file.

Definition at line 106 of file fstream.hpp.


Public Member Functions

bool at_end () const
 fd_stream (const gsgl::string &fname, gsgl::flags_t mode=FILE_OPEN_READ)
const gsgl::stringget_fname () const
data_streamoperator<< (const double &)
data_streamoperator<< (const float &)
data_streamoperator<< (const int &)
data_streamoperator<< (const unsigned char &)
data_streamoperator>> (double &)
data_streamoperator>> (float &)
data_streamoperator>> (int &)
data_streamoperator>> (unsigned char &)
gsgl::index_t read (unsigned char *, const gsgl::index_t)
gsgl::index_t write (const unsigned char *, const gsgl::index_t)
virtual ~fd_stream ()

Protected Attributes

gsgl::string fname
void * fp
int mode

Constructor & Destructor Documentation

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

Definition at line 232 of file fstream.cpp.

~fd_stream (  )  [virtual]

Definition at line 238 of file fstream.cpp.


Member Function Documentation

bool at_end (  )  const

Reimplemented from file_stream.

Definition at line 243 of file fstream.cpp.

References file_stream::at_end().

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

Definition at line 78 of file fstream.hpp.

Referenced by file_log_target::~file_log_target().

data_stream & operator<< ( const double &  n  )  [inherited]

Definition at line 207 of file stream.cpp.

References data_stream::write().

data_stream & operator<< ( const float n  )  [inherited]

Definition at line 217 of file stream.cpp.

References data_stream::write().

data_stream & operator<< ( const int &  n  )  [inherited]

Definition at line 196 of file stream.cpp.

References data_stream::write().

data_stream & operator<< ( const unsigned char &  c  )  [inherited]

Definition at line 186 of file stream.cpp.

References data_stream::write().

data_stream & operator>> ( double &  n  )  [inherited]

Definition at line 257 of file stream.cpp.

References data_stream::read().

data_stream & operator>> ( float n  )  [inherited]

Definition at line 267 of file stream.cpp.

References data_stream::read().

data_stream & operator>> ( int &  n  )  [inherited]

Definition at line 247 of file stream.cpp.

References data_stream::read().

data_stream & operator>> ( unsigned char &  ch  )  [inherited]

Definition at line 236 of file stream.cpp.

References data_stream::read().

gsgl::index_t read ( unsigned char *  ptr,
const gsgl::index_t  num 
) [virtual]

Implements data_stream.

Definition at line 248 of file fstream.cpp.

References file_stream::fp.

gsgl::index_t write ( const unsigned char *  ptr,
const gsgl::index_t  num 
) [virtual]

Implements data_stream.

Definition at line 254 of file fstream.cpp.

References file_stream::fp.

Referenced by rgba_buffer::save().


Member Data Documentation

gsgl::string fname [protected, inherited]

Definition at line 65 of file fstream.hpp.

Referenced by ft_stream::peek().

void* fp [protected, inherited]

int mode [protected, inherited]


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