Filename and modification date for a file list. More...
#include <save_index.hpp>
Public Member Functions | |
| const std::string & | name () const |
| const auto & | 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::chrono::system_clock::time_point &modified) | |
Private Attributes | |
| std::string | name_ |
| std::shared_ptr< save_index_class > | save_index_ |
| std::chrono::system_clock::time_point | modified_ |
Friends | |
| class | create_save_info |
Filename and modification date for a file list.
Definition at line 27 of file save_index.hpp.
|
inlineprivate |
Definition at line 32 of file save_index.hpp.
| std::string savegame::save_info::format_time_local | ( | ) | const |
Definition at line 242 of file save_index.cpp.
References _(), chrono::format_local_timestamp(), prefs::get(), modified(), and prefs::use_twelve_hour_clock_format().
| std::string savegame::save_info::format_time_summary | ( | ) | const |
Definition at line 255 of file save_index.cpp.
References utils::format_time_summary(), and modified().
|
inline |
Definition at line 47 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 42 of file save_index.hpp.
References name_.
Referenced by savegame::save_info_less_time::operator()(), and summary().
| const config & savegame::save_info::summary | ( | ) | const |
Definition at line 237 of file save_index.cpp.
References name(), and save_index_.
|
friend |
Definition at line 30 of file save_index.hpp.
|
private |
Definition at line 59 of file save_index.hpp.
Referenced by modified().
|
private |
Definition at line 57 of file save_index.hpp.
Referenced by name().
|
private |
Definition at line 58 of file save_index.hpp.
Referenced by summary().