The Battle for Wesnoth  1.15.0+dev
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
savegame::save_index_class Class Reference

#include <save_index.hpp>

Public Member Functions

 save_index_class ()
 
void rebuild (const std::string &name)
 
void rebuild (const std::string &name, const std::time_t &modified)
 
void remove (const std::string &name)
 
void set_modified (const std::string &name, const std::time_t &modified)
 
configget (const std::string &name)
 
void write_save_index ()
 

Private Member Functions

configdata (const std::string &name)
 
configdata ()
 

Static Private Member Functions

static void fix_leader_image_path (config &data)
 

Private Attributes

bool loaded_
 
config data_
 
std::map< std::string, std::time_t > modified_
 

Detailed Description

Definition at line 83 of file save_index.hpp.

Constructor & Destructor Documentation

◆ save_index_class()

savegame::save_index_class::save_index_class ( )

Definition at line 113 of file save_index.cpp.

Member Function Documentation

◆ data() [1/2]

config & savegame::save_index_class::data ( const std::string &  name)
private

◆ data() [2/2]

config & savegame::save_index_class::data ( )
private

◆ fix_leader_image_path()

void savegame::save_index_class::fix_leader_image_path ( config data)
staticprivate

Definition at line 160 of file save_index.cpp.

References config::child_range().

Referenced by data().

◆ get()

config & savegame::save_index_class::get ( const std::string &  name)

◆ rebuild() [1/2]

void savegame::save_index_class::rebuild ( const std::string &  name)

◆ rebuild() [2/2]

void savegame::save_index_class::rebuild ( const std::string &  name,
const std::time_t &  modified 
)

◆ remove()

void savegame::save_index_class::remove ( const std::string &  name)

◆ set_modified()

void savegame::save_index_class::set_modified ( const std::string &  name,
const std::time_t &  modified 
)

Definition at line 77 of file save_index.cpp.

References modified_, and name().

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

◆ write_save_index()

void savegame::save_index_class::write_save_index ( )

Member Data Documentation

◆ data_

config savegame::save_index_class::data_
private

Definition at line 105 of file save_index.hpp.

Referenced by data().

◆ loaded_

bool savegame::save_index_class::loaded_
private

Definition at line 104 of file save_index.hpp.

Referenced by data().

◆ modified_

std::map<std::string, std::time_t> savegame::save_index_class::modified_
private

Definition at line 106 of file save_index.hpp.

Referenced by get(), and set_modified().


The documentation for this class was generated from the following files: