The Battle for Wesnoth  1.15.3+dev
Functions | Variables
result_set.cpp File Reference
#include <mysql.h>
#include <memory.h>
#include <mariadb++/connection.hpp>
#include <mariadb++/result_set.hpp>
#include <mariadb++/conversion_helper.hpp>
#include <mariadb++/bind.hpp>
#include "private.hpp"
Include dependency graph for result_set.cpp:

Go to the source code of this file.

Functions

 if (len==0) return stream_ref()
 
ss rdbuf () -> pubsetbuf(m_row[index], len)
 
return stream_ref (ss)
 
if(m_stmt_data) return mariadb return date_time (std::string(m_row[index], column_size(index))).date()
 
return decimal (std::string(m_row[index], column_size(index)))
 
 if (m_stmt_data) return(m_binds[index] -> m_uchar8[0] !=0)
 
return string_cast< bool > (std::string(m_row[index], column_size(index)))
 
 if (m_stmt_data) return checked_cast< u8 >(0x00000000000000ff &m_binds[index] -> m_unsigned64)
 
return string_cast< u8 > (std::string(m_row[index], column_size(index)))
 
return string_cast< s8 > (std::string(m_row[index], column_size(index)))
 
return string_cast< u16 > (std::string(m_row[index], column_size(index)))
 
return string_cast< s16 > (std::string(m_row[index], column_size(index)))
 
return string_cast< u32 > (std::string(m_row[index], column_size(index)))
 
return string_cast< s32 > (std::string(m_row[index], column_size(index)))
 
return string_cast< u64 > (std::string(m_row[index], column_size(index)))
 
return string_cast< s64 > (std::string(m_row[index], column_size(index)))
 
return string_cast< f32 > (std::string(m_row[index], column_size(index)))
 
return string_cast< f64 > (std::string(m_row[index], column_size(index)))
 

Variables

size_t len = column_size(index)
 
auto * ss = new std::istringstream()
 
return !m_row [index]
 

Function Documentation

◆ date_time()

if (m_stmt_data) return mariadb return date_time ( std::string(m_row[index], column_size(index))  )

◆ decimal()

return decimal ( std::string(m_row[index], column_size(index))  )

◆ if() [1/3]

if ( len  = =0)

◆ if() [2/3]

if ( m_stmt_data  ) -> m_uchar8[0] !
pure virtual

◆ if() [3/3]

if ( m_stmt_data  ) & -> m_unsigned64)

◆ rdbuf()

ss rdbuf ( ) -> pubsetbuf(m_row[index], len)

◆ stream_ref()

return stream_ref ( ss  )

◆ string_cast< bool >()

return string_cast< bool > ( std::string(m_row[index], column_size(index))  )

◆ string_cast< f32 >()

return string_cast< f32 > ( std::string(m_row[index], column_size(index))  )

◆ string_cast< f64 >()

return string_cast< f64 > ( std::string(m_row[index], column_size(index))  )

◆ string_cast< s16 >()

return string_cast< s16 > ( std::string(m_row[index], column_size(index))  )

◆ string_cast< s32 >()

return string_cast< s32 > ( std::string(m_row[index], column_size(index))  )

◆ string_cast< s64 >()

return string_cast< s64 > ( std::string(m_row[index], column_size(index))  )

◆ string_cast< s8 >()

return string_cast< s8 > ( std::string(m_row[index], column_size(index))  )

◆ string_cast< u16 >()

return string_cast< u16 > ( std::string(m_row[index], column_size(index))  )

◆ string_cast< u32 >()

return string_cast< u32 > ( std::string(m_row[index], column_size(index))  )

◆ string_cast< u64 >()

return string_cast< u64 > ( std::string(m_row[index], column_size(index))  )

◆ string_cast< u8 >()

return string_cast< u8 > ( std::string(m_row[index], column_size(index))  )

Variable Documentation

◆ !m_row

return !m_row[index]

Definition at line 387 of file result_set.cpp.

◆ len

return len = column_size(index)

◆ ss

auto* ss = new std::istringstream()

Definition at line 281 of file result_set.cpp.

Referenced by game_config::add_color_info(), gui2::dialogs::mp_lobby::adjust_game_row_contents(), schema_validation::at(), combatant::average_hp(), help::bold(), utils::bool_string(), BOOST_AUTO_TEST_CASE(), help::convert_to_wml(), user_handler::create_unsecure_nonce(), gui2::dialogs::lobby_player_info::do_kick_ban(), mp::do_notify(), gui2::dialogs::lobby_player_info::do_stopgame(), editor::map_fragment::dump(), font::escape_text(), gui2::dialogs::game_load::evaluate_summary_string(), wb::side_actions::execute(), editor::context_manager::expand_areas_menu(), editor::context_manager::expand_open_maps_menu(), schema_validation::extra_key_error(), schema_validation::extra_tag_error(), gui2::dialogs::format_addon_time(), wfl::formula_error::formula_error(), help::generate_contents(), help::generate_table(), wfl::variant_callable::get_debug_string(), editor::get_menu_marker(), get_probability_string(), gui2::dialogs::get_probability_string(), wfl::variant_string::get_serialized_string(), get_time(), lg::get_timestamp(), events::map_command_handler< chat_command_handler >::help(), events::map_command_handler< chat_command_handler >::help_command(), mp::initial_level_config(), intf_add_known_unit(), help::jump(), help::jump_to(), game_config::load_config(), image::load_image_sub_file(), game_events::event_handlers::log_handlers(), mask_surface(), schema_validation::missing_key_error(), schema_validation::missing_tag_error(), help::terrain_topic_generator::operator()(), help::unit_topic_generator::operator()(), lg::logger::operator()(), game_events::wml_event_pump::operator()(), help::parse_config_internal(), help::parse_text(), gui2::dialogs::end_credits::pre_show(), gui2::dialogs::campaign_difficulty::pre_show(), preprocess_resource(), preprocessor_file::preprocessor_file(), help::print_behavior_description(), gui2::dialogs::network_transmission::pump_monitor::process(), gui2::chatbox::process_room_query_response(), random_generate_map(), random_generate_scenario(), read(), gamemap::read(), filesystem::read_file(), REPORT_GENERATOR(), application_lua_kernel::thread::run_script(), editor::map_context::save_map(), font::semi_escape_text(), events::menu_handler::send_chat_message(), gui2::addon_list::set_addons(), gui2::dialogs::attack_predictions::set_data(), unit::set_underlying_id(), utils::si_string(), wfl::variant_map::to_string_detail(), wfl::variant_decimal::to_string_impl(), wfl::variant_container< variant_vector >::to_string_impl(), unit_type_data::unit_type_data(), wfl::was_expecting(), wesnothd::banned::write(), savegame::savegame::write_game_to_disk(), schema_validation::wrong_path_error(), schema_validation::wrong_tag_error(), schema_validation::wrong_type_error(), and schema_validation::wrong_value_error().