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, const configr_of &cfg, unsigned int level=0) |
void | write_gz (std::ostream &out, const configr_of &cfg) |
void | write_bz2 (std::ostream &out, const configr_of &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, |
const std::string & | in, | ||
abstract_validator * | validator = nullptr |
||
) |
Definition at line 634 of file parser.cpp.
void read | ( | config & | cfg, |
std::istream & | in, | ||
abstract_validator * | validator = nullptr |
||
) |
Definition at line 629 of file parser.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), savegame::save_index_class::data(), gui2::dialogs::editor_edit_unit::editor_edit_unit(), saved_game::expand_map_file(), get_addon_install_info(), get_addon_pbl_info(), ai::configuration::get_side_config_from_file(), handle_preprocess_command(), handle_preprocess_string(), handle_validate_command(), gui2::init(), ng::create_engine::init_all_levels(), lua_wml::intf_load_wml(), lua_wml::intf_parse_wml(), persist_file_context::load(), campaignd::server::load_blacklist(), campaignd::server::load_config(), font::load_font_config(), load_language_list(), prefs::load_preferences(), editor::map_context::load_scenario(), prefs::migrate_preferences(), gui2::dialogs::editor_edit_pbl::pre_show(), preprocess_and_parse(), preprocess_resource(), process_command_args(), achievements::read_achievements_file(), wesnothd::server::read_config(), schema_validation::schema_validator::read_config_file(), game_config::config_cache::read_configs(), savegame::read_save_file(), editor::map_context::save_schedule(), campaignd::server::serve_requests(), editor::map_context::to_config(), unicode_cast(), ucs4::iterator_base< string_type, update_implementation >::update(), and gui2::dialogs::editor_edit_pbl::validate().
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 691 of file parser.cpp.
References validator.
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 685 of file parser.cpp.
References validator.
Referenced by savegame::save_index_class::data(), wesnothd_connection::handle_read(), network_asio::connection::handle_read(), campaignd::server::handle_request_campaign(), campaignd::server::handle_upload(), campaignd::server::load_config(), wesnothd::ban_manager::read(), game_config::config_cache::read_file(), and savegame::read_save_file().
void write | ( | std::ostream & | out, |
const configr_of & | cfg, | ||
unsigned int | level = 0 |
||
) |
Definition at line 766 of file parser.cpp.
References game_config::images::level, PACKAGE, and write_internal().
Referenced by campaignd::server::handle_request_campaign(), campaignd::server::handle_request_campaign_list(), campaignd::server::handle_server_id(), lua_wml::intf_wml_tostring(), preprocess_resource(), set_addon_pbl_info(), unicode_cast(), write_addon_install_info(), write_compressed(), campaignd::server::write_config(), prefs::write_preferences(), savegame::save_index_class::write_save_index(), network_asio::connection::~connection(), and wesnothd_connection::~wesnothd_connection().
void write_bz2 | ( | std::ostream & | out, |
const configr_of & | cfg | ||
) |
Definition at line 790 of file parser.cpp.
void write_close_child | ( | std::ostream & | out, |
const std::string & | child, | ||
unsigned int | level | ||
) |
Definition at line 710 of file parser.cpp.
References game_config::images::level.
Referenced by config_writer::close_child(), and write_internal().
void write_gz | ( | std::ostream & | out, |
const configr_of & | cfg | ||
) |
Definition at line 785 of file parser.cpp.
Referenced by wesnothd_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 696 of file parser.cpp.
References config_attribute_value::apply_visitor(), and game_config::images::level.
Referenced by gui2::dialogs::editor_edit_unit::update_wml_view(), and write_internal().
void write_open_child | ( | std::ostream & | out, |
const std::string & | child, | ||
unsigned int | level | ||
) |
Definition at line 705 of file parser.cpp.
References game_config::images::level.
Referenced by config_writer::open_child(), and write_internal().