The Battle for Wesnoth  1.19.1+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 25 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 30 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 266 of file save_index.cpp.

References utils::format_time_summary(), modified(), and t.

◆ modified()

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

Definition at line 43 of file save_index.hpp.

References modified_.

Referenced by format_time_local(), and format_time_summary().

◆ name()

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

Definition at line 38 of file save_index.hpp.

References name_.

Referenced by format_time_local(), and summary().

◆ summary()

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

Definition at line 245 of file save_index.cpp.

References name(), and save_index_.

Friends And Related Function Documentation

◆ create_save_info

friend class create_save_info
friend

Definition at line 28 of file save_index.hpp.

Member Data Documentation

◆ modified_

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

Definition at line 55 of file save_index.hpp.

Referenced by modified().

◆ name_

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

Definition at line 53 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 54 of file save_index.hpp.

Referenced by summary().


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