binary_wml.hpp File Reference

#include <iosfwd>
#include <map>
#include <string>

Include dependency graph for binary_wml.hpp:

This graph shows which files directly or indirectly include this file:

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)


Function Documentation

void read_compressed ( config cfg,
std::istream &  in 
)

Definition at line 226 of file binary_wml.cpp.

References read_compressed().

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 
)

Definition at line 221 of file binary_wml.cpp.

References write_compressed().

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