Classes | Namespaces | Defines | Functions | Variables

savegame.cpp File Reference

#include <boost/iostreams/filter/gzip.hpp>
#include "savegame.hpp"
#include "dialogs.hpp"
#include "foreach.hpp"
#include "formula_string_utils.hpp"
#include "game_display.hpp"
#include "game_end_exceptions.hpp"
#include "game_preferences.hpp"
#include "gettext.hpp"
#include "gui/dialogs/game_load.hpp"
#include "gui/dialogs/game_save.hpp"
#include "gui/dialogs/message.hpp"
#include "gui/dialogs/campaign_difficulty.hpp"
#include "gui/widgets/settings.hpp"
#include "gui/widgets/window.hpp"
#include "log.hpp"
#include "map.hpp"
#include "map_label.hpp"
#include "persist_manager.hpp"
#include "replay.hpp"
#include "resources.hpp"
#include "serialization/binary_or_text.hpp"
#include "serialization/parser.hpp"
#include "statistics.hpp"
#include "unit_id.hpp"
#include "version.hpp"
Include dependency graph for savegame.cpp:

Go to the source code of this file.

Classes

class  savegame::save_index_class
class  savegame::filename_filter
class  savegame::create_save_info

Namespaces

namespace  savegame

Defines

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

Functions

void replace_underbar2space (std::string &name)
void replace_space2underbar (std::string &name)
std::vector< save_info > savegame::get_saves_list (const std::string *dir, const std::string *filter)
 Get a list of available saves.
void savegame::read_save_file (const std::string &name, config &cfg, std::string *error_log)
 Read the complete config information out of a savefile.
bool savegame::save_game_exists (const std::string &name, bool compress_saves)
 Returns true if there is already a savegame with that name.
void savegame::clean_saves (const std::string &label)
 Delete all autosaves of a certain scenario.
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).
void savegame::delete_game (const std::string &name)
 Delete a savegame.

Variables

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

Define Documentation

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

Function Documentation

void replace_space2underbar ( std::string &  name  ) 

Definition at line 128 of file savegame.cpp.

Referenced by savegame::savegame::open_save_game(), and savegame::save_index_class::rebuild().

Here is the caller graph for this function:

void replace_underbar2space ( std::string &  name  ) 

Definition at line 125 of file savegame.cpp.

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

Here is the caller graph for this function:


Variable Documentation

lg::log_domain log_engine("engine") [static]
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:09:13 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs