The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Namespaces | Macros | Functions | Variables
save_index.cpp File Reference
#include <boost/iostreams/filter/gzip.hpp>
#include "save_index.hpp"
#include "format_time_summary.hpp"
#include "formula/string_utils.hpp"
#include "game_end_exceptions.hpp"
#include "game_preferences.hpp"
#include "gettext.hpp"
#include "log.hpp"
#include "serialization/binary_or_text.hpp"
#include "serialization/parser.hpp"
#include "team.hpp"
#include "filesystem.hpp"
#include "config.hpp"
Include dependency graph for save_index.cpp:

Go to the source code of this file.

Classes

class  savegame::filename_filter
 

Namespaces

 savegame
 

Macros

#define LOG_SAVE   LOG_STREAM(info, log_engine)
 
#define ERR_SAVE   LOG_STREAM(err, log_engine)
 
#define LOG_RG   LOG_STREAM(info, log_enginerefac)
 

Functions

void replace_underbar2space (std::string &name)
 
void replace_space2underbar (std::string &name)
 
void savegame::extract_summary_from_config (config &, config &)
 
std::vector< save_info > savegame::get_saves_list (const std::string *dir, const std::string *filter)
 Get a list of available saves. More...
 
static std::istream * savegame::find_save_file (const std::string &name, const std::string &alt_name, const std::vector< std::string > &suffixes)
 
void savegame::read_save_file (const std::string &name, config &cfg, std::string *error_log)
 Read the complete config information out of a savefile. More...
 
void savegame::remove_old_auto_saves (const int autosavemax, const int infinite_auto_saves)
 Remove autosaves that are no longer needed (according to the autosave policy in the preferences). More...
 
void savegame::delete_game (const std::string &name)
 Delete a savegame. More...
 

Variables

static lg::log_domain log_engine ("engine")
 
static lg::log_domain log_enginerefac ("enginerefac")
 
save_index_class savegame::save_index_manager
 

Macro Definition Documentation

#define ERR_SAVE   LOG_STREAM(err, log_engine)
#define LOG_RG   LOG_STREAM(info, log_enginerefac)

Definition at line 38 of file save_index.cpp.

#define LOG_SAVE   LOG_STREAM(info, log_engine)

Function Documentation

void replace_space2underbar ( std::string name)
void replace_underbar2space ( std::string name)

Definition at line 40 of file save_index.cpp.

References utils::replace().

Referenced by savegame::create_save_info::operator()().

Variable Documentation

lg::log_domain log_engine("engine")
static
lg::log_domain log_enginerefac("enginerefac")
static