Interface for filtering a savegame till it is loaded. More...
#include <saveload_filter.h>
Public Member Functions | |
| LoadFilter (LoadFilter *chain) | |
| Initialise this filter. | |
| virtual | ~LoadFilter () |
| Make sure the writers are properly closed. | |
| virtual size_t | Read (byte *buf, size_t len)=0 |
| Read a given number of bytes from the savegame. | |
| virtual void | Reset () |
| Reset this filter to read from the beginning of the file. | |
Data Fields | |
| LoadFilter * | chain |
| Chained to the (savegame) filters. | |
Interface for filtering a savegame till it is loaded.
Definition at line 16 of file saveload_filter.h.
| LoadFilter::LoadFilter | ( | LoadFilter * | chain | ) | [inline] |
Initialise this filter.
| chain | The next filter in this chain. |
Definition at line 24 of file saveload_filter.h.
| virtual LoadFilter::~LoadFilter | ( | ) | [inline, virtual] |
Make sure the writers are properly closed.
Definition at line 29 of file saveload_filter.h.
References chain.
| virtual size_t LoadFilter::Read | ( | byte * | buf, | |
| size_t | len | |||
| ) | [pure virtual] |
Read a given number of bytes from the savegame.
| buf | The bytes to read. | |
| len | The number of bytes to read. |
Implemented in PacketReader, FileReader, LZOLoadFilter, NoCompLoadFilter, and ZlibLoadFilter.
Referenced by DoLoad(), ZlibLoadFilter::Read(), NoCompLoadFilter::Read(), and LZOLoadFilter::Read().
Chained to the (savegame) filters.
Definition at line 18 of file saveload_filter.h.
Referenced by ZlibLoadFilter::Read(), NoCompLoadFilter::Read(), LZOLoadFilter::Read(), Reset(), and ~LoadFilter().
1.7.1