StreamDataSource Class Reference

#include <databuf.h>

Inheritance diagram for StreamDataSource:

Inheritance graph
[legend]
Collaboration diagram for StreamDataSource:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 StreamDataSource (std::ifstream *data_stream)
 StreamDataSource (std::ofstream *data_stream)
virtual ~StreamDataSource ()
virtual uint32 peek ()
virtual uint32 read1 ()
virtual uint16 read2 ()
virtual uint16 read2high ()
virtual uint32 read4 ()
virtual uint32 read4high ()
void read (char *b, int len)
virtual void write1 (uint32 val)
virtual void write2 (uint16 val)
virtual void write2high (uint16 val)
virtual void write4 (uint32 val)
virtual void write4high (uint32 val)
virtual void write (char *b, int len)
virtual void seek (unsigned int pos)
virtual void skip (int pos)
virtual unsigned int getSize ()
virtual unsigned int getPos ()
virtual bool eof ()

Private Attributes

std::ifstream * in
std::ofstream * out

Detailed Description

Definition at line 61 of file databuf.h.


Constructor & Destructor Documentation

StreamDataSource::StreamDataSource ( std::ifstream *  data_stream  )  [inline]

Definition at line 67 of file databuf.h.

StreamDataSource::StreamDataSource ( std::ofstream *  data_stream  )  [inline]

Definition at line 71 of file databuf.h.

virtual StreamDataSource::~StreamDataSource (  )  [inline, virtual]

Definition at line 75 of file databuf.h.


Member Function Documentation

virtual uint32 StreamDataSource::peek (  )  [inline, virtual]

Implements DataSource.

Definition at line 77 of file databuf.h.

References in.

virtual uint32 StreamDataSource::read1 (  )  [inline, virtual]

Implements DataSource.

Definition at line 79 of file databuf.h.

References in, and Read1().

Referenced by Game_window::read_gwin(), and Game_window::read_npcs().

Here is the call graph for this function:

virtual uint16 StreamDataSource::read2 (  )  [inline, virtual]

Implements DataSource.

Definition at line 81 of file databuf.h.

References in, and Read2().

Referenced by Game_window::read_gwin(), Game_window::read_npcs(), Game_window::read_schedules(), Game_window::revert_schedules(), and Game_window::write_saveinfo().

Here is the call graph for this function:

virtual uint16 StreamDataSource::read2high (  )  [inline, virtual]

Implements DataSource.

Definition at line 83 of file databuf.h.

References in, and Read2high().

Here is the call graph for this function:

virtual uint32 StreamDataSource::read4 (  )  [inline, virtual]

Implements DataSource.

Definition at line 85 of file databuf.h.

References in, and Read4().

Referenced by Game_window::get_game_identity(), Game_map::get_ifix_objects(), Game_window::read_gwin(), Game_window::read_schedules(), Game_window::restore_gamedat(), and Game_window::revert_schedules().

Here is the call graph for this function:

virtual uint32 StreamDataSource::read4high (  )  [inline, virtual]

Implements DataSource.

Definition at line 87 of file databuf.h.

References in, and Read4high().

Here is the call graph for this function:

void StreamDataSource::read ( char *  b,
int  len 
) [inline, virtual]

Implements DataSource.

Definition at line 89 of file databuf.h.

References in.

Referenced by Game_window::get_game_identity(), Game_window::get_saveinfo(), main(), Game_window::read_schedules(), Game_window::restore_gamedat(), Game_window::revert_schedules(), and Savefile().

virtual void StreamDataSource::write1 ( uint32  val  )  [inline, virtual]

Implements DataSource.

Definition at line 91 of file databuf.h.

References out, and Write1().

Referenced by Game_window::write_gwin(), and Game_window::write_saveinfo().

Here is the call graph for this function:

virtual void StreamDataSource::write2 ( uint16  val  )  [inline, virtual]

Implements DataSource.

Definition at line 93 of file databuf.h.

References out, and Write2().

Referenced by Game_window::write_gwin(), Game_window::write_npcs(), Game_window::write_saveinfo(), and Game_window::write_schedules().

Here is the call graph for this function:

virtual void StreamDataSource::write2high ( uint16  val  )  [inline, virtual]

Implements DataSource.

Definition at line 95 of file databuf.h.

References out, and Write2high().

Here is the call graph for this function:

virtual void StreamDataSource::write4 ( uint32  val  )  [inline, virtual]

Implements DataSource.

Definition at line 97 of file databuf.h.

References out, and Write4().

Referenced by Game_window::write_gwin(), Game_window::write_saveinfo(), and Game_window::write_schedules().

Here is the call graph for this function:

virtual void StreamDataSource::write4high ( uint32  val  )  [inline, virtual]

Implements DataSource.

Definition at line 99 of file databuf.h.

References out, and Write4high().

Here is the call graph for this function:

virtual void StreamDataSource::write ( char *  b,
int  len 
) [inline, virtual]

Implements DataSource.

Definition at line 101 of file databuf.h.

References out.

Referenced by Game_map::write_ifix_objects(), Game_window::write_saveinfo(), and Game_window::write_schedules().

virtual void StreamDataSource::seek ( unsigned int  pos  )  [inline, virtual]

Implements DataSource.

Definition at line 103 of file databuf.h.

References in, and out.

Referenced by Game_window::get_game_identity(), Game_map::get_ifix_objects(), Game_window::restore_gamedat(), Savefile(), Game_map::write_ifix_objects(), and Game_window::write_npcs().

virtual void StreamDataSource::skip ( int  pos  )  [inline, virtual]

Implements DataSource.

Definition at line 109 of file databuf.h.

References in.

Referenced by Game_window::read_npcs(), Game_window::revert_schedules(), and Game_window::write_saveinfo().

virtual unsigned int StreamDataSource::getSize (  )  [inline, virtual]

Implements DataSource.

Definition at line 111 of file databuf.h.

References in, len, and out.

Referenced by Savefile().

virtual unsigned int StreamDataSource::getPos (  )  [inline, virtual]

Implements DataSource.

Definition at line 129 of file databuf.h.

References in, and out.

Referenced by Game_map::write_ifix_objects().

virtual bool StreamDataSource::eof (  )  [inline, virtual]

Implements DataSource.

Definition at line 131 of file databuf.h.

References in.


Member Data Documentation

std::ifstream* StreamDataSource::in [private]

Definition at line 64 of file databuf.h.

Referenced by eof(), getPos(), getSize(), peek(), read(), read1(), read2(), read2high(), read4(), read4high(), seek(), and skip().

std::ofstream* StreamDataSource::out [private]

Definition at line 65 of file databuf.h.

Referenced by getPos(), getSize(), seek(), write(), write1(), write2(), write2high(), write4(), and write4high().


The documentation for this class was generated from the following file:
Generated on Mon Jul 9 15:04:00 2007 for ExultEngine by  doxygen 1.5.1