The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
savegame::save_index_class Class Reference

#include <save_index.hpp>

Public Member Functions

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

Private Member Functions

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

Private Attributes

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

Detailed Description

Definition at line 77 of file save_index.hpp.

Constructor & Destructor Documentation

savegame::save_index_class::save_index_class ( )

Definition at line 108 of file save_index.cpp.

Member Function Documentation

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

Definition at line 115 of file save_index.cpp.

References config::add_child(), data(), and config::find_child().

config & savegame::save_index_class::data ( )
private
config & savegame::save_index_class::get ( const std::string name)
void savegame::save_index_class::rebuild ( const std::string name)
void savegame::save_index_class::rebuild ( const std::string name,
const time_t &  modified 
)
void savegame::save_index_class::remove ( const std::string name)
void savegame::save_index_class::set_modified ( const std::string name,
const time_t &  modified 
)

Definition at line 79 of file save_index.cpp.

References modified_.

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

void savegame::save_index_class::write_save_index ( )

Member Data Documentation

config savegame::save_index_class::data_
private

Definition at line 95 of file save_index.hpp.

Referenced by data().

bool savegame::save_index_class::loaded_
private

Definition at line 94 of file save_index.hpp.

Referenced by data().

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

Definition at line 96 of file save_index.hpp.

Referenced by get(), and set_modified().


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