Filename and modification date for a file list. More...
#include <save_index.hpp>
Public Member Functions | |
const std::string & | name () const |
const std::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 std::shared_ptr< save_index_class > &index, const std::time_t &modified) | |
Private Attributes | |
std::string | name_ |
std::shared_ptr< save_index_class > | save_index_ |
std::time_t | modified_ |
Friends | |
class | create_save_info |
Filename and modification date for a file list.
Definition at line 25 of file save_index.hpp.
|
inlineprivate |
Definition at line 30 of file save_index.hpp.
std::string savegame::save_info::format_time_local | ( | ) | const |
Definition at line 249 of file save_index.cpp.
References _(), prefs::get(), LOG_SAVE, modified(), name(), translation::strftime(), and prefs::use_twelve_hour_clock_format().
std::string savegame::save_info::format_time_summary | ( | ) | const |
Definition at line 265 of file save_index.cpp.
References utils::format_time_summary(), modified(), and t.
|
inline |
Definition at line 43 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 format_time_local(), savegame::save_info_less_time::operator()(), and summary().
const config & savegame::save_info::summary | ( | ) | const |
Definition at line 244 of file save_index.cpp.
References name(), and save_index_.
|
friend |
Definition at line 28 of file save_index.hpp.
|
private |
Definition at line 55 of file save_index.hpp.
Referenced by modified().
|
private |
Definition at line 53 of file save_index.hpp.
Referenced by name().
|
private |
Definition at line 54 of file save_index.hpp.
Referenced by summary().