The Battle for Wesnoth  1.15.6+dev
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
savegame::save_info Class Reference

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 configsummary () 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_classsave_index_
 
std::time_t modified_
 

Friends

class create_save_info
 

Detailed Description

Filename and modification date for a file list.

Definition at line 26 of file save_index.hpp.

Constructor & Destructor Documentation

◆ save_info()

savegame::save_info::save_info ( const std::string &  name,
const std::shared_ptr< save_index_class > &  index,
const std::time_t &  modified 
)
inlineprivate

Definition at line 31 of file save_index.hpp.

Member Function Documentation

◆ format_time_local()

std::string savegame::save_info::format_time_local ( ) const

◆ format_time_summary()

std::string savegame::save_info::format_time_summary ( ) const

Definition at line 250 of file save_index.cpp.

References utils::format_time_summary(), and t.

Referenced by modified().

◆ modified()

const std::time_t& savegame::save_info::modified ( ) const
inline

◆ name()

const std::string& savegame::save_info::name ( ) const
inline

◆ summary()

const config & savegame::save_info::summary ( ) const

Definition at line 231 of file save_index.cpp.

References config::get(), and name.

Referenced by gui2::dialogs::game_load::display_savegame_internal(), and modified().

Friends And Related Function Documentation

◆ create_save_info

friend class create_save_info
friend

Definition at line 29 of file save_index.hpp.

Member Data Documentation

◆ modified_

std::time_t savegame::save_info::modified_
private

Definition at line 56 of file save_index.hpp.

Referenced by modified().

◆ name_

std::string savegame::save_info::name_
private

Definition at line 54 of file save_index.hpp.

Referenced by name().

◆ save_index_

std::shared_ptr<save_index_class> savegame::save_info::save_index_
private

Definition at line 55 of file save_index.hpp.


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