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 26 of file save_index.hpp.
|
inlineprivate |
Definition at line 31 of file save_index.hpp.
std::string savegame::save_info::format_time_local | ( | ) | const |
Definition at line 252 of file save_index.cpp.
References _(), LOG_SAVE, modified(), name(), translation::strftime(), and preferences::use_twelve_hour_clock_format().
std::string savegame::save_info::format_time_summary | ( | ) | const |
Definition at line 268 of file save_index.cpp.
References utils::format_time_summary(), modified(), and t.
|
inline |
Definition at line 44 of file save_index.hpp.
References modified_.
Referenced by format_time_local(), and format_time_summary().
|
inline |
Definition at line 39 of file save_index.hpp.
References name_.
Referenced by format_time_local(), and summary().
const config & savegame::save_info::summary | ( | ) | const |
Definition at line 247 of file save_index.cpp.
References name(), and save_index_.
|
friend |
Definition at line 29 of file save_index.hpp.
|
private |
Definition at line 56 of file save_index.hpp.
Referenced by modified().
|
private |
Definition at line 54 of file save_index.hpp.
Referenced by name().
|
private |
Definition at line 55 of file save_index.hpp.
Referenced by summary().