23 #include <boost/iostreams/filtering_stream.hpp>
51 boost::iostreams::filtering_stream<boost::iostreams::output>
filter_;
Variant for storing WML attributes.
Class for writing a config out to a file in pieces.
boost::iostreams::filtering_stream< boost::iostreams::output > filter_
void close_child(const std::string &key)
void write(const config &cfg)
~config_writer()
Default implementation, but defined out-of-line for efficiency reasons.
void write_child(const std::string &key, const config &cfg)
compression::format compress_
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.
config_writer(std::ostream &out, compression::format compress)
void open_child(const std::string &key)
A config object defines a single node in a WML file, with access to child nodes.
Definitions for the interface to Wesnoth Markup Language (WML).