24 #include <boost/iostreams/filtering_stream.hpp> 52 boost::iostreams::filtering_stream<boost::iostreams::output>
filter_;
void write(const config &cfg)
config_writer(std::ostream &out, compression::format compress)
Variant for storing WML attributes.
compression::format compress_
Definitions for the interface to Wesnoth Markup Language (WML).
void write_child(const std::string &key, const config &cfg)
void write_key_val(const std::string &key, const T &value)
This template function will work with any type that can be assigned to an attribute_value.
void close_child(const std::string &key)
Class for writing a config out to a file in pieces.
void open_child(const std::string &key)
~config_writer()
Default implementation, but defined out-of-line for efficiency reasons.
A config object defines a single node in a WML file, with access to child nodes.
boost::iostreams::filtering_stream< boost::iostreams::output > filter_