The Battle for Wesnoth  1.19.6+dev
Public Member Functions | Public Attributes | List of all members
filesystem::file_tree_checksum Struct Reference

#include <filesystem.hpp>

Public Member Functions

 file_tree_checksum ()
 
 file_tree_checksum (const config &cfg)
 
void write (config &cfg) const
 
void reset ()
 
bool operator== (const file_tree_checksum &rhs) const
 
bool operator!= (const file_tree_checksum &rhs) const
 

Public Attributes

std::size_t nfiles
 
std::size_t sum_size
 
std::time_t modified
 

Detailed Description

Definition at line 308 of file filesystem.hpp.

Constructor & Destructor Documentation

◆ file_tree_checksum() [1/2]

filesystem::file_tree_checksum::file_tree_checksum ( )

Definition at line 267 of file filesystem_common.cpp.

◆ file_tree_checksum() [2/2]

filesystem::file_tree_checksum::file_tree_checksum ( const config cfg)
explicit

Definition at line 271 of file filesystem_common.cpp.

Member Function Documentation

◆ operator!=()

bool filesystem::file_tree_checksum::operator!= ( const file_tree_checksum rhs) const
inline

Definition at line 318 of file filesystem.hpp.

References operator==().

◆ operator==()

bool filesystem::file_tree_checksum::operator== ( const file_tree_checksum rhs) const

Definition at line 285 of file filesystem_common.cpp.

References modified, nfiles, and sum_size.

Referenced by operator!=().

◆ reset()

void filesystem::file_tree_checksum::reset ( )
inline

Definition at line 313 of file filesystem.hpp.

References modified, nfiles, and sum_size.

Referenced by filesystem::data_tree_checksum().

◆ write()

void filesystem::file_tree_checksum::write ( config cfg) const

Definition at line 278 of file filesystem_common.cpp.

References modified, nfiles, and sum_size.

Referenced by game_config::config_cache::read_cache().

Member Data Documentation

◆ modified

std::time_t filesystem::file_tree_checksum::modified

Definition at line 316 of file filesystem.hpp.

Referenced by filesystem::get_files_in_dir(), operator==(), reset(), and write().

◆ nfiles

std::size_t filesystem::file_tree_checksum::nfiles

◆ sum_size

std::size_t filesystem::file_tree_checksum::sum_size

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