The Battle for Wesnoth  1.15.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::time_t &modified)
 

Private Attributes

std::string name_
 
std::time_t modified_
 

Friends

class create_save_info
 

Detailed Description

Filename and modification date for a file list.

Definition at line 24 of file save_index.hpp.

Constructor & Destructor Documentation

◆ save_info()

savegame::save_info::save_info ( const std::string &  name,
const std::time_t &  modified 
)
inlineprivate

Definition at line 29 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 228 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

Friends And Related Function Documentation

◆ create_save_info

friend class create_save_info
friend

Definition at line 27 of file save_index.hpp.

Member Data Documentation

◆ modified_

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

Definition at line 52 of file save_index.hpp.

Referenced by modified().

◆ name_

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

Definition at line 51 of file save_index.hpp.

Referenced by name().


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