Filename and modification date for a file list. More...
#include <save_index.hpp>
Public Member Functions | |
const std::string & | name () const |
const time_t & | modified () const |
std::string | format_time_summary () const |
std::string | format_time_local () const |
const config & | summary () const |
Private Member Functions | |
save_info (const std::string &name, const time_t &modified) | |
Private Attributes | |
std::string | name_ |
time_t | modified_ |
Friends | |
class | create_save_info |
Filename and modification date for a file list.
Definition at line 29 of file save_index.hpp.
|
inlineprivate |
Definition at line 33 of file save_index.hpp.
std::string savegame::save_info::format_time_local | ( | ) | const |
Definition at line 191 of file save_index.cpp.
References _(), LOG_SAVE, modified(), name(), util::strftime(), and preferences::use_twelve_hour_clock_format().
Referenced by gui2::tgame_load::display_savegame().
std::string savegame::save_info::format_time_summary | ( | ) | const |
Definition at line 209 of file save_index.cpp.
References util::format_time_summary(), and modified().
|
inline |
Definition at line 39 of file save_index.hpp.
References modified_.
Referenced by format_time_local(), format_time_summary(), and savegame::save_info_less_time::operator()().
|
inline |
Definition at line 38 of file save_index.hpp.
References name_.
Referenced by gui2::tgame_load::display_savegame(), format_time_local(), savegame::save_info_less_time::operator()(), and summary().
const config & savegame::save_info::summary | ( | ) | const |
Definition at line 187 of file save_index.cpp.
References savegame::save_index_class::get(), and name().
Referenced by gui2::tgame_load::display_savegame().
|
friend |
Definition at line 31 of file save_index.hpp.
|
private |
Definition at line 46 of file save_index.hpp.
Referenced by modified().
|
private |
Definition at line 45 of file save_index.hpp.
Referenced by name().