The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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::stringname () const
 
const 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 time_t &modified)
 

Private Attributes

std::string name_
 
time_t modified_
 

Friends

class create_save_info
 

Detailed Description

Filename and modification date for a file list.

Definition at line 29 of file save_index.hpp.

Constructor & Destructor Documentation

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

Definition at line 33 of file save_index.hpp.

Member Function Documentation

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

Definition at line 209 of file save_index.cpp.

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

const time_t& savegame::save_info::modified ( ) const
inline
const std::string& savegame::save_info::name ( ) const
inline
const config & savegame::save_info::summary ( ) const

Definition at line 187 of file save_index.cpp.

References savegame::save_index_class::get(), and name().

Referenced by gui2::tgame_load::display_savegame().

Friends And Related Function Documentation

friend class create_save_info
friend

Definition at line 31 of file save_index.hpp.

Member Data Documentation

time_t savegame::save_info::modified_
private

Definition at line 46 of file save_index.hpp.

Referenced by modified().

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

Definition at line 45 of file save_index.hpp.

Referenced by name().


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