The Battle for Wesnoth  1.19.10+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 auto & 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::chrono::system_clock::time_point &modified)
 

Private Attributes

std::string name_
 
std::shared_ptr< save_index_classsave_index_
 
std::chrono::system_clock::time_point modified_
 

Friends

class create_save_info
 

Detailed Description

Filename and modification date for a file list.

Definition at line 27 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::chrono::system_clock::time_point &  modified 
)
inlineprivate

Definition at line 32 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 263 of file save_index.cpp.

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

◆ modified()

const auto& savegame::save_info::modified ( ) const
inline

◆ name()

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

Definition at line 42 of file save_index.hpp.

References name_.

Referenced by savegame::save_info_less_time::operator()(), 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 30 of file save_index.hpp.

Member Data Documentation

◆ modified_

std::chrono::system_clock::time_point savegame::save_info::modified_
private

Definition at line 59 of file save_index.hpp.

Referenced by modified().

◆ name_

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

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

Referenced by summary().


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