#include <databuf.h>
Inheritance diagram for StreamDataSource:


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 |
Definition at line 61 of file databuf.h.
| StreamDataSource::StreamDataSource | ( | std::ifstream * | data_stream | ) | [inline] |
| StreamDataSource::StreamDataSource | ( | std::ofstream * | data_stream | ) | [inline] |
| virtual StreamDataSource::~StreamDataSource | ( | ) | [inline, virtual] |
| virtual uint32 StreamDataSource::peek | ( | ) | [inline, virtual] |
| virtual uint32 StreamDataSource::read1 | ( | ) | [inline, virtual] |
Implements DataSource.
Definition at line 79 of file databuf.h.
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.
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.
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.
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.
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.
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.
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] |
| virtual unsigned int StreamDataSource::getPos | ( | ) | [inline, virtual] |
Implements DataSource.
Definition at line 129 of file databuf.h.
Referenced by Game_map::write_ifix_objects().
| virtual bool StreamDataSource::eof | ( | ) | [inline, virtual] |
std::ifstream* StreamDataSource::in [private] |
std::ofstream* StreamDataSource::out [private] |
1.5.1