#include <binary_or_text.hpp>
Public Member Functions | |
config_writer (std::ostream &out, bool compress, const std::string &textdomain) | |
void | write (const config &cfg) |
void | write_child (const std::string &key, const config &cfg) |
void | write_key_val (const std::string &key, const std::string &value) |
void | open_child (const std::string &key) |
void | close_child (const std::string &key) |
bool | good () const |
Private Attributes | |
boost::iostreams::filtering_stream < boost::iostreams::output > | filter_ |
std::ostream * | out_ptr_ |
std::ostream & | out_ |
bool | compress_ |
unsigned int | level_ |
std::string | textdomain_ |
Definition at line 39 of file binary_or_text.hpp.
config_writer::config_writer | ( | std::ostream & | out, | |
bool | compress, | |||
const std::string & | textdomain | |||
) |
void config_writer::write | ( | const config & | cfg | ) |
Definition at line 66 of file binary_or_text.cpp.
Referenced by output_to_buffer(), and write_child().
void config_writer::write_child | ( | const std::string & | key, | |
const config & | cfg | |||
) |
Definition at line 71 of file binary_or_text.cpp.
References close_child(), level_, open_child(), out_, and write().
Referenced by write_game(), and write_player().
void config_writer::write_key_val | ( | const std::string & | key, | |
const std::string & | value | |||
) |
Definition at line 78 of file binary_or_text.cpp.
References level_, out_, and textdomain_.
Referenced by statistics::stats::write(), write_battle_result_map(), write_game(), write_player(), statistics::write_stats(), and write_str_int_map().
void config_writer::open_child | ( | const std::string & | key | ) |
Definition at line 83 of file binary_or_text.cpp.
References level_, out_, and write_open_child().
Referenced by statistics::stats::write(), write_battle_result_map(), write_child(), write_game(), and statistics::write_stats().
void config_writer::close_child | ( | const std::string & | key | ) |
Definition at line 88 of file binary_or_text.cpp.
References level_, out_, and write_close_child().
Referenced by statistics::stats::write(), write_battle_result_map(), write_child(), write_game(), and statistics::write_stats().
bool config_writer::good | ( | ) | const |
Definition at line 93 of file binary_or_text.cpp.
References out_.
Referenced by finish_save_game().
boost::iostreams::filtering_stream<boost::iostreams::output> config_writer::filter_ [private] |
std::ostream* config_writer::out_ptr_ [private] |
Definition at line 53 of file binary_or_text.hpp.
std::ostream& config_writer::out_ [private] |
Definition at line 54 of file binary_or_text.hpp.
Referenced by close_child(), good(), open_child(), write(), write_child(), and write_key_val().
bool config_writer::compress_ [private] |
unsigned int config_writer::level_ [private] |
Definition at line 56 of file binary_or_text.hpp.
Referenced by close_child(), open_child(), write(), write_child(), and write_key_val().
std::string config_writer::textdomain_ [private] |
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |