#include <iosfwd>
#include <map>
#include <string>
Go to the source code of this file.
Classes | |
struct | compression_schema |
Holds the schema by which config objects can be compressed and decompressed. More... | |
Functions | |
void | write_compressed (std::ostream &out, config const &cfg, compression_schema &schema) |
Write compressed data. | |
void | read_compressed (config &cfg, std::istream &in, compression_schema &schema) |
Read compressed data. | |
void | write_compressed (std::ostream &out, config const &cfg) |
void | read_compressed (config &cfg, std::istream &in) |
void read_compressed | ( | config & | cfg, | |
std::istream & | in | |||
) |
void read_compressed | ( | config & | cfg, | |
std::istream & | in, | |||
compression_schema & | schema | |||
) |
Read compressed data.
Definition at line 215 of file binary_wml.cpp.
References config::clear(), and read_compressed_internal().
Referenced by check_python_scripts(), detect_format_and_read(), process_queue(), and read_compressed().
void write_compressed | ( | std::ostream & | out, | |
config const & | cfg | |||
) |
void write_compressed | ( | std::ostream & | out, | |
config const & | cfg, | |||
compression_schema & | schema | |||
) |
Write compressed data.
The schema will be created and written with the data. However if you are making successive writes (e.g. a network connection), you can re-use the same schema on the sending end, and the receiver can store the schema, meaning that the entire schema won't have to be transmitted each time.
Definition at line 156 of file binary_wml.cpp.
References write_compressed_internal().
Referenced by output_to_buffer(), write_compressed(), write_possibly_compressed(), and write_save_index().
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |