Go to the source code of this file.
Functions | |
void | read (config &cfg, std::istream &in, abstract_validator *validator=nullptr) |
void | read (config &cfg, const std::string &in, abstract_validator *validator=nullptr) |
void | read_gz (config &cfg, std::istream &in, abstract_validator *validator=nullptr) |
might throw a std::ios_base::failure especially a gzip_error More... | |
void | read_bz2 (config &cfg, std::istream &in, abstract_validator *validator=nullptr) |
might throw a std::ios_base::failure especially bzip2_error More... | |
void | write (std::ostream &out, configr_of const &cfg, unsigned int level=0) |
void | write_gz (std::ostream &out, configr_of const &cfg) |
void | write_bz2 (std::ostream &out, configr_of const &cfg) |
void | write_key_val (std::ostream &out, const std::string &key, const config::attribute_value &value, unsigned level, std::string &textdomain) |
void | write_open_child (std::ostream &out, const std::string &child, unsigned int level) |
void | write_close_child (std::ostream &out, const std::string &child, unsigned int level) |
void read | ( | config & | cfg, |
std::istream & | in, | ||
abstract_validator * | validator = nullptr |
||
) |
Definition at line 400 of file parser.cpp.
Referenced by preferences::base_manager::base_manager(), savegame::save_index_class::data(), get_addon_install_info(), get_addon_pbl_info(), ai::configuration::get_side_config_from_file(), handle_preprocess_command(), ng::create_engine::init_all_levels(), persist_file_context::load(), campaignd::server::load_blacklist(), cutter::load_config(), campaignd::server::load_config(), font::load_font_config(), load_language_list(), editor::map_context::load_scenario(), gui2::load_settings(), main(), preprocess_resource(), wesnothd::server::read_config(), schema_validation::schema_validator::read_config_file(), game_config::config_cache::read_configs(), input_stream::read_line(), wesnothd::room_manager::read_rooms(), savegame::read_save_file(), help::help_text_area::set_items(), unicode_cast(), and ucs4::iterator_base< string_type, update_implementation >::update().
void read | ( | config & | cfg, |
const std::string & | in, | ||
abstract_validator * | validator = nullptr |
||
) |
Definition at line 405 of file parser.cpp.
void read_bz2 | ( | config & | cfg, |
std::istream & | in, | ||
abstract_validator * | validator = nullptr |
||
) |
might throw a std::ios_base::failure especially bzip2_error
Definition at line 460 of file parser.cpp.
Referenced by savegame::read_save_file().
void read_gz | ( | config & | cfg, |
std::istream & | in, | ||
abstract_validator * | validator = nullptr |
||
) |
might throw a std::ios_base::failure especially a gzip_error
Definition at line 454 of file parser.cpp.
Referenced by savegame::save_index_class::data(), network_asio::connection::handle_read(), twesnothd_connection::handle_read(), wesnothd::ban_manager::read(), game_config::config_cache::read_file(), wesnothd::room_manager::read_rooms(), and savegame::read_save_file().
void write | ( | std::ostream & | out, |
configr_of const & | cfg, | ||
unsigned int | level = 0 |
||
) |
Definition at line 621 of file parser.cpp.
References PACKAGE, and write_internal().
Referenced by help::help_text_area::handle_ref_cfg(), gui2::unit_mode_controller::handle_stuff_list_selection(), addons_client::install_addon(), preprocess_resource(), events::menu_handler::save_map(), set_addon_pbl_info(), unicode_cast(), write_compressed(), campaignd::server::write_config(), preferences::write_preferences(), and savegame::save_index_class::write_save_index().
void write_bz2 | ( | std::ostream & | out, |
configr_of const & | cfg | ||
) |
Definition at line 644 of file parser.cpp.
void write_close_child | ( | std::ostream & | out, |
const std::string & | child, | ||
unsigned int | level | ||
) |
Definition at line 570 of file parser.cpp.
Referenced by config_writer::close_child(), and write_internal().
void write_gz | ( | std::ostream & | out, |
configr_of const & | cfg | ||
) |
Definition at line 639 of file parser.cpp.
Referenced by twesnothd_connection::send_data(), network_asio::connection::transfer(), and savegame::save_index_class::write_save_index().
void write_key_val | ( | std::ostream & | out, |
const std::string & | key, | ||
const config::attribute_value & | value, | ||
unsigned | level, | ||
std::string & | textdomain | ||
) |
Definition at line 558 of file parser.cpp.
References config::attribute_value::apply_visitor().
Referenced by write_internal().
void write_open_child | ( | std::ostream & | out, |
const std::string & | child, | ||
unsigned int | level | ||
) |
Definition at line 565 of file parser.cpp.
Referenced by config_writer::open_child(), and write_internal().